Optimizing code using direct relations

You can use the MicroC profile to generate optimized code for relations.

About this task

When this optimization is used, Rational Rhapsody does not generate setters and getters for relations, these being unnecessary in static systems.The generation of this optimized code for relations is controlled by the following properties which are part of the MicroC profile:

By default, the use of direct relations is switched on when using the MicroC profile.

This optimization for relation code can only be used for relations where each end has multiplicity of no more than 1. For relations where multiplicity greater than 1 is used, Rational Rhapsody generates its standard code for relations (not the optimized code) regardless of the values of the relevant properties.


Feedback