ibm Rational Rhapsody 7.5 — Creating a bi-directional association

Object model diagrams Creating a bi-directional association To create a bi-directional association between classes: 1. Click the Create Association icon . 2. Click in a class. 3. Click in another class. In this example note the bi-directional Association line between two classes. Note the following information: Љ Associations specify how classes relate to each other with role names. The relative numbers of objects participating is shown with multiplicity. Љ You can move an association name freely. Љ If you remove the class at one end of an association from the view, the association is also removed from the view.

If you delete a class at one end of an association from the model, the association is also deleted. Љ The role names and multiplicity are set in the Features window for the association. To edit a role name or multiplicity, double-click it. Љ If you move an association line from between class x and class y to between class x and class z , where z is a subclass of y , it is removed from y . But if z is a superclass of y , it remains because all relationships with a superclass are shared by their subclasses. If z and y are independent, Rational Rhapsody moves it from y to z . 552 User Guide