About the UML profile for aspectual templates
UML Templates allow to capture models whose some of their constituents are parameters. This construct is general enough to be used in many ways, such as generic class representation, Design Pattern modeling, view or aspect-oriented modeling (AOM). We concentrate on this last usage and the specific characteristics of so called "Aspectual Templates". Such templates can be applied to enrich existing models as far as they conform to a required model. Template parameters are exploited here to specify some required model, so that they must be constrained to form a full model structure.
We provide here an UML profile that allow to enhance standard UML templates to capture aspectual ones. The UML profile includes OCL constraints to check the coherency of UML models which apply the profile. The bind relationship dedicated to UML templates has also be enhanced in this profil. Last, the set of provided plugins includes a program which constructs the result of the application of an Aspectual Template to a model and plugins for a simple CASE tool which includes both a tree-based editor and a basic grapher of UML models
Videos
A Video/How to specify and compose aspectual templates
A Video/tutorial for partial binding of aspectual templates
A Video demonstrating automatic binding inference
Screenshot of the case tool
Requirements
You'll need :
- Eclipse (Kepler, version Eclipse Modeling Tools) The Modeling edition of Kepler Eclipse includes EMF, UML 2, OCL and Acceleo required plugins
- Graphviz (http://www.graphviz.org/)
- Eclipse Graphviz plugin (see the Installation section)
Installation
Installation of the eclipse Graphviz plugin:
- Open the Software Updates dialog (Help > Install New Software...), and enter the following JAR URL in the "Work with:" field (include jar: to the !/ at the end):
- Select the Modeling category (the Eclipse Graphviz plugin is included in the TextUML Toolkit feature).
- Accept to restart Eclipse to make the changes effective.
Installation of the Aspectual template plugins:
- From within Eclipse, open the Software Updates dialog ("Help > Install New Software...")
- enter the following JAR URL in the "Work with:" field "http://www.lifl.fr/caramel/aspectualtemplates/aspectualtemplateSite"
- Select the "Model Driven Engineering" category (which automatically selects the three previous described plugins" and finish the installation
- Accept to restart Eclipse to make the changes effective.
Library of design patterns
A library of GOF design patterns is implemented by using aspectual templates. In order to use it :
- download this file : GOFDesignPatternsAspectualTemplatesLibrary.zip
- Import the library : select "File/import" in the Eclipse menu, then select "General/Existing Projects into Workspace", click "Next", select the downloaded archive file "Select archive file" and, last, click "Finish".
- There is now a new Eclipse project that includes the different design patterns
Some Example Models
This following archive contains some example models : examples.zip
© 2014 the CARAMEL team