ibm Rational Rhapsody 7.5 — Bi-directional associations

Associations Associations In previous versions of Rational Rhapsody, the term “relations” referred to all the different kinds of associations. Note that the term “relations” refers to all the relationships you can define between elements in the model (not just classes), associations, dependencies, generalization, flows, and links. Associations are links that allow related objects to communicate. Rational Rhapsody supports the following types of associations: Љ Bi-directional association where both objects can send messages back and forth. This is also called a symmetric association . For more information, see Bi-directional associations .

Љ Directed association where only one of the objects can send messages to the other. For more information, see Directed associations . Љ Aggregation association defines a whole-part relationship. For more information, see Aggregation associations . Љ Composition aggregation defines a relationship where one class fully contains the other. For more information, see Composition associations . Bi-directional associations Bi-directional (or symmetric ) associations are the simplest way that two classes can relate to each other. A bi-directional association is shown as a line between two classes, and can contain control points.

The classes can be any mix of classes, simple classes, or composite classes. When you create an association or an aggregation association between two classes and give it a role name that already exists, you have created another view of an existing relation. In previous versions of Rational Rhapsody, an association was described by one or two association ends. An association can be composed of the following elements:

Љ Association ends means the associated objects Љ Association element means a view of the association as a whole Љ Association class means an association element that has class characteristics (attributes and operations) Note If you draw an anchor from a class to a relation (association, aggregation, or composition), it semantically implies that the class is an association class for this relation. Removing the icon changes the association class into a regular class. Rational Rhapsody 551