Associations implementation

IBM® Engineering Systems Design 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 CG::Relation::Implementation and CG::Relation::ImplementWithStaticArray properties).