Aspectual templates in UML Enhancing the semantics of UML templates in OCL

被引:9
作者
Vanwormhoudt, Gilles [1 ,2 ]
Caron, Olivier [1 ]
Carre, Bernard [1 ]
机构
[1] Univ Lille, CNRS, CRIStAL, UMR 9189, F-59655 Villeneuve Dascq, France
[2] Inst Mines Telecom, Paris, France
关键词
Model templates; UML; OCL; Metamodeling; Aspects; Patterns; Template composition; ASPECT-ORIENTED DESIGN; PATTERNS; MODELS;
D O I
10.1007/s10270-015-0463-3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
UML Templates allow to capture reusable models through parameterization. The construct is general enough to be used in many ways, ranging from the representation of generic components (such as Java generics or C++ templates) to aspectual usage, including pattern-, aspect- and view-oriented modeling. We concentrate on this last usage and so-called aspectual templates which require that parameters must form a model of systems in which to inject new functionalities. Starting from this strict constraint, we derive an in-depth semantic enhancement of the standard. It is formalized as a fully UML-compliant interpretation in OCL of the template construct and its binding mechanism. In particular, this aspectual interpretation must be ensured in case of partial binding (not all parameters are valued). Partial binding of UML is a powerful technique which allows to obtain richer templates from the composition of other ones. As a major result, the present semantic enhancement is consistent with this capacity so that partial binding of aspectual templates produces aspectual templates. Finally, at an operational level, an algorithm for aspectual template (partial) binding operation is formulated and consequent reusable technology made available in EMF (Eclipse Modeling Framework) is presented.
引用
收藏
页码:469 / 497
页数:29
相关论文
共 45 条
[1]  
Abed W.A., 2012, LNCS, V7745
[2]  
[Anonymous], 2011, AUX CONSTR TEMPL
[3]  
Bergmayr A., 2014, P CLOUDMDE WORKSH MO
[4]  
Bigot J, 2009, LECT NOTES COMPUT SC, V5791, P21
[5]   PolyTOIL: A type-safe polymorphic object-oriented language [J].
Bruce, KB ;
Schuett, A ;
Van Gent, R ;
Fiech, A .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2003, 25 (02) :225-290
[6]  
Caron O, 2004, LECT NOTES COMPUT SC, V3273, P27
[7]  
Caron O., 2000, Database and expert systems applications. 11th International Conference, DEXA 2000. Proceedings (Lecture Notes in Computer Science Vol.1873), P135
[8]  
Caron O., 2007, REV LOBJET HERMES LA, V13, P11
[9]  
Caron O, 2009, LECT NOTES BUS INF, V33, P215
[10]   From subsets of model elements to submodels [J].
Carre, Bernard ;
Vanwormhoudt, Gilles ;
Caron, Olivier .
SOFTWARE AND SYSTEMS MODELING, 2015, 14 (02) :861-887