Modeling Guide
This guide describes the modeling activities to complete a transformation rule set in Rhapsody with the M2M Transformer.
Prerequisites for M2MRuleset modeling
Before starting the M2M Modeling activity, load the M2M Profile by following these steps:
- Open the model to be transformed (It can be UML, SysML, MARTE, AUTOSAR or any home-made profiles)
- Click on File/Add To Model…, and select M2M.sbsx previously deployed in your Rhapsody Profiles folder ($OMROOT/Profiles/M2M).
- Click again on File/Add To Model, to select the profile from the domain where you want to transform. If you want to transform towards UML, you do not need to select a profile.
Limitations
- Since Rhapsody 9.0, if the project is a SysML project, it will be impossible to add other elements than SysML elements.
- To check if your project is a SysML project, move the mouse over the project name in the model Browser. A tool tip will appear and show the project stereotype.
- If this is a SysML project, to be able to add M2M elements into the project, the kind of the project must be changed. To do that, open the project context menu by right clicking on the project; select the 'change to' item, and select 'project'.
- Once the modifications have been done, the project can be set back to SysML project with context menu 'change to'.
Modeling steps
The M2M transformation is based on a set of mapping rules which are executed by a M2M engine, and which will transform your model. These mapping rules are represented inside the M2M model.
The M2MRuleset contains the list of your mapping rules and some JavaScript code which can extend the M2M capabilities.