ibm Rational Rhapsody 7.5 — Associations menu

Associations Associations implementation Rational Rhapsody implements associations using containers. Containers are objects that store collections of other objects. To properly generate code for associations, you must specify the container set and type within that set you are using for the association. Generally, you use the same container set for all associations. You specify the container set using the CG::Configuration::ContainerSet property. There are many options, depending on the language you are using. You can assign various container types, as defined in the selected container set, to specific relations.

Container types include Fixed , StaticArray , BoundedOrdered , BoundedUnordered , UnboundedOrdered , UnboundedUnordered , and Qualified , among others. In addition, you can define your own container type called User . You specify the container type using the Implementation and ImplementWithStaticArray properties (under CG::Relation ). Associations menu In addition to the common operations (see Edit elements ), the menu for associations includes the following options: Љ Select Association lists the available associations for this class, as shown in this example. This functionality is useful when you have more than one association between the same elements.

For more information, see Select associations . Љ Show Labels shows the role labels in the diagram. Љ Display Options enables you to specify how associations are displayed in the diagram. By default, Rational Rhapsody displays the name of the association, and the multiplicity and qualifiers for End1 and End2. Rational Rhapsody 563