basic q about sequence diagrams

From: Karl Hungus (nnnnndddddd_at_hotmail.com)
Date: 03/16/04


Date: Tue, 16 Mar 2004 02:43:52 GMT

If two objects are represented in a sequence diagram with one message
joining them, and the message is a method call, which object is supposed to
have the method as one of its members?

example if I have a car object and I want to call a method
car.getPassengers() to return a collection of passengers

do I model it this way:

[car] ------getPassengers----->[passengers]
or
[system] ------getPassengers----->[car]

..brackets are boxes there...forgive the simplification

Thanks in advance,
Karl



Relevant Pages

  • Re: FS: NIB Revenge From Mars Pinball Machine
    ... boxes are now available :-) ... popped my nib unpacking cherry today after ... joining the hobby much too late. ...
    (rec.games.pinball)
  • Re: basic q about sequence diagrams
    ... Robert C. Martin wrote in message ... >>If two objects are represented in a sequence diagram with one message ... >>joining them, and the message is a method call, which object is supposed ...
    (comp.object)
  • Re: the connection line
    ... Rick B ... > After joining two boxes how do I stop the connection line? ...
    (microsoft.public.access.gettingstarted)