Generating code automatically due to dynamic model‑code associativity
If you choose Rhapsody® generates code automatically when an element changes and is in need of regeneration.
and then either the Bidirectional or Code Generation command,About this task
Dynamic model-code associativity (DMCA) means that changes made to the model are reflected in the code and changes made to the code can be easily roundtripped back into the model. In this way, Rhapsody maintains tight relationships and traceability between the model and the code. The code is simply another straightforward view of the model.
These changes include the following possibilities:
- Changes to the element itself, such as its name or properties or by adding or removing parts of the element
- Changes in its owner, an associated element, a project, a selected component or configuration
- Adding an element to the model through the Add to Model feature
- Checking out the element with a CM tool
- Using the Undo command while editing the element
Code for an element is automatically generated if one of the following actions occur:
- You open a Code View window for the element, either with the internal code editor or an external code editor. See Viewing and editing the generated code.
- You set focus on an existing Code View window for that element.
If you set dynamic model-code associativity
to None
or to Roundtrip
, you must
use to generate code for the modified elements.
Note: Dynamic model‑code associativity is applicable to all versions of Rhapsody
Developer for C, C++, and Java, and Rhapsody
Developer for Ada.