I want to represent that a class is composed by instances of other classes. I know two ways to do that:
-use a class diagram, where I can show that a class is in composition/aggregation relation with another classes.
-use a structure diagram. I need to create instances of the inner classes and I can then drag them as parts of a composite class
Is it possible to use both representations at the same time in Rhapsody to represent the same "composition" relation? (as different views, one at the class level, the other explicitly showing the parts the containment relation refers to).
I noticed that when I create the class diagram, Rhapsody creates an association end to represent the class instance inside the composite class. it seems there is no way to link this association end with a part in a structure diagram; if you try to create a structure diagram with the part named as the association end, the part gets marked in red; same if you first create the structure diagram and then try to rename the association end as the part (Rhapsody complains that the name is already used by the part). Basically, the default behavior seems to be that the composition relation in the class diagram creates its own instance(s), and the parts in the structure diagrams are created as distinct instances.