Book a Demo

Author Topic: Objects in sequence and collaboration diagrams  (Read 5819 times)

JEff Russell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Objects in sequence and collaboration diagrams
« on: October 02, 2003, 03:04:19 pm »
Here's a question about objects that show up in a sequence and collaboration diagrams.  My understanding is that the two diagrams can show nearly the same information, so I would expect that an object can show up in either diagram.

Attached is a screen shot of the project browser for an example.  The "User Interface" package contains a sequence diagram and a collaboration diagram.  The bottom three icons represent "sequence elements"--per EA help files.  The middle two icons represent objects.


Here is the story: I created the sequence diagram first, and instantiated objects using the outlook bar, which resulted in the three "sequence elements". I would expect I could then instantiate this object into a collaboration diagram.  (Instantiate in the sense of putting the sequence element in the new diagram as a simple link.)
However, when I drag-and-drop a sequence element into the collaboration diagram, a new object is created. These are how the two objects were created in the above example.

How is the object in the collaboration diagram different from the sequence element in the sequence diagram?  Or, why is a new, separate object created? And how can I track that they are instances of the same thing (as the design progresses)?

Here's the twist: If I first create an object in the collaboration diagram (dragged from the outlook bar), and then drag-and-drop it from the project browser into the sequence diagram, no new sequence element is created--the object itself shows up in the sequence diagram.

Comments that shed some light on this behavior are appreciated...
JEff
JEff

iran

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Objects in sequence and collaboration diagrams
« Reply #1 on: October 05, 2003, 03:15:16 pm »
I tested out your example below and did not get the same result.  I ended up with the same object from the sequence diagram in the collaboration diagram.   It seems you may have Auto Instance off in Tools--> Options --> Diagram --> Behavior which would account for not having a new instance created when you drag an object to the sequence diagram.  Are you using the latest build?  I am using 3.60.645 on Windows 2000.  I have had different behavior with EA on different platforms, especially on Windows XP Pro.

JEff Russell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Objects in sequence and collaboration diagrams
« Reply #2 on: October 06, 2003, 06:31:39 am »
Quote
Are you using the latest build?  I am using 3.60.645 on Windows 2000.

Hm. I am using build 644 on Win2K.  Next time I upgrade, I'll check it again.
JEff

JEff Russell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Objects in sequence and collaboration diagrams
« Reply #3 on: October 06, 2003, 12:55:23 pm »
Tried it with build 646.  Things are a little closer to what I expect: if a sequence (object) is created in a sequence diagram, it can be placed (as a simple link) into a collaboration diagram without a separate object being created.  
Of course, though, it is placed in the collaboration diagram as a "sequence", complete with the cute dotted line.
Upon further examination, the collaboration diagram really doesn't seem suited for specifying an interactive diagram (that showns messages between objects). There doesn't seem to be a way to specify messages between objects (the sequence message wants to always be horizontal, among other clunkiness problems).
No big deal...just use sequence diagrams.
JEff