IBM Support

How to draw aggregation relationship with referenced classes in Rational Rhapsody

Question & Answer


Question

How do you draw an aggregation relation from a class within a package to a class within a referenced package in IBM Rational Rhapsody?

Cause

You would want to create an Object Model Diagram (OMD) show casing an aggregation between a Normal class to a Referenced class since by default it is not possible to draw an aggregation between a normal class and a Referenced class in Rational Rhapsody as aggregation is bidirectional

Answer

In order to draw an aggregation between a Normal class to a Referenced class you would need to load the referenced class or package as a unit to make it Read/Write.

However, if you desire to draw an unidirectional relation (aggregation) between the normal class and the Referenced class, you can achieve the same by drawing a Directed association between the two classes. Additionally, you would need to set the value of Aggregation Kind as Shared as shown below:

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21433875