![]() |
![]() |
![]() |
![]() |
|
|
|
| Bienvenue | Wiki-COCOA / Main / CocoaModeler | Éditer Historique Imprimer |
|
COCOA Intranet Localisation : |
CocoaModelerEclipse Cocoa ModelerContentAbout Eclipse Cocoa ModelerExtended UML 2 Case tool based on environment EMF Eclipse making it possible to build information systems using parametrizable models also called aspectual templates described in the thesis of Alexis Muller. For further details, please refer to Alexis Muller's Thesis and ECMDA'05 Eclipse Cocoa Modeler is a set of Eclipse plugins that provides the following capacities~:
aspectual templates and their assembly via the apply operator
RequirementsYou'll need :
Download and Installation
Library of design patternA library of well-known design patterns is implemented by using aspectual templates. In order to use it :
Graphical view of Aspectual templatesThis tool provides a graphical view of a model. If this view do not appear automatically, you have to load it by selecting "Window/Show View/Other..." then "Cocoa Modeler/Diagram" If you have the following error message «Unexpected exception executing Graphviz java.io.IOException : Cannot run program « chemin d'accès à dot.exe » », you have to specify the path of the Graphviz application : select "Window/Preferences", then select the tabbed pane "CocoaModeler", then specify the path for the "dot" application (graphviz). Basic TutorialA typical use of this tool includes the following steps:
ExampleWe illustrate this tool by the application of the well-known Observer pattern to an existing system : the "HeatFlowRegulation" model. The "HeatFlowRegulation package models a part of a home heating system. This package has its own content which is composed of "RoomSensor", "HeatFlowRegulator" and "Furnace" classes. First Step : create your model
Select this folder, right click on it, select New-> Other-> Cocoa Modeler Assembly Model Creation -> Assembly Model.
Second Step : Edit your model
new elements (New Child).
under Window -> Show View -> Properties. The following figure show the created elements for our example : ![]() Thanks to the graphical view, the tool provides the following diagram for this model : ![]() Third Step : import model from libraryIt is possible to load models stored in libraries. For our example, we import the Observer Pattern model. The process is the following :
Fourth Step : model compositionIn this example, the TemplateApplying relationship is used to connect the Observer pattern to the HeatFlowRegulation model. This is specified by associating "RoomSensor" to "Subject", "HeatFlowRegulator" to "Observer" and their respective "value" and "value_view" attributes to "currentTemperature" and "measuredTemperature". The process is the following :
![]()
![]()
![]() The Diagram view shows now the resulting Assembly model : ![]() Fifth Step : Applying the pattern (merge mode)
The generated model is the following : ![]() As a result of this applying, "RoomSensor" and "HeatFlowRegulator" have respectively the same elements (operations and association) than "Subject" and "Observer". Note that actual classes may have contents in addition to those specified for the formal parameters. Additional StepFor each step of the process, the model or a part of it can be checked by selecting Assembly Model Editor -> validate Acknowledgement© 2011 the COCOA group Special thanks to GIS Students who contributed to this project :Carine Locquet and Romain Vandierdonck |
| Éditer Historique Imprimer Changements récents |