> If I have a sequence diagram that creates the 3 classes, I think RSM
> (if memory serves) only allowed messages between classes that had
> associations, therefore there couldn't be a direct message between
> Owner and Car. Is this right?
I'm afraid not. The SD only defines object collaborations and relative
sequence. It does not specify relationship navigation in the Class
Diagram. It is quite common for messages to traverse paths with multiple
associations. So the message should be shown directly between Owner and
Car since all OO collaborations are peer-to-peer.
[Relationship routing can be critical when there are relationship loops
in the Class Diagram. For many moons one of the holes in UML was the
inability to specify which path to take in a loop. Since that decision
is essentially dynamic, it should be specified in the method generating
the message. But back in the day one specified what went on in methods
in Activity Diagrams. So one thing that text-based AALs brought to the
table was the ability to specify the path rigorously with syntax like
ref = this -> A5 -> A7 -> A2 WHERE (...);
GENERATE e1 TO ref WITH ...
when they replaced ADs for specifying methods.]
AFAIK no UML drawing tool is confused about this. It has been years
since I used RSM, but I am pretty sure it allowed peer-to-peer
collaborations.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
Rene Descartes went into a bar. The bartender asked if he would like a drink. Descartes said, "I think not," and disappeared.
H. S. Lahman
H.la...@verizon.net
software blog: http://pathfinderpeople.blogs.com/hslahman/index.html