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:
Note that the value of the RelationInitializingMode property affects code generation only if the InitializingMode property is set to ByCategory. Otherwise, the code generated is determined by the value of the InitializingMode property.
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.