Object model diagrams Code generation for links The code for run-time connection of objects is based on links. The connection code is generated when the following conditions are met: Љ Links are specified with an association. Љ The objects connected by the link has an owner (composite class or object) or are global (both objects are owned by a package). If the objects are parts of a composite, the link is owned by the composite. When the objects are global, the link is owned by a package. Links across packages are initialized by the component. Љ The package and objects for the link are in the scope of the generated component.
Љ The CG::Component::InitializationScheme property for the component is set to ByComponent for links across packages. Љ If more than one link exists between two objects over the same relation, Rational Rhapsody arbitrarily chooses which link to instantiate. The packages that contain the objects are given priority in this decision. 570 User Guide