Ro wrote:

But where and how do I model the above association between the two classes
when they are in two different class diagrams in two different packages?

As far as I know you can't create the association without drawing it on a diagram, and in order to draw it on a diagram you need to have both classes on the same diagram.

So what you need to do is find the "other" class in the model browser, right click it and say add to diagram. Then you have both the classes on the same diagram and can draw the association.

You migh oppose to the above and say: "but then I get the server class in the client package". The answer to that is that you should note that there is big difference to a class belonging to a certain package and just beeing shown on a diagram. A diagram is just a window into your model showing whatever classes, associations or other elements you need to express something. So perhaps the most sensible thing to do would be to add an additional diagram at the same level as where the diagram you show the packages on and draw the association there. Then the diagrams "inside" the packages would be clean from classes from the other package.

If I had drawn this in the first place however I would have ahd the client and server classes in the same package in the first place. After all these two terms do belong to the same subject matter so I would argue that they should be in the same package.

HTH
Leif

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to