• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

When to use sequence and collaboration diagram

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When we designing an enterprise solution, which would be better to depict a flow of usecase??
I would appreciate any remarks on this front..
Thanks
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
kanupam11
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a proffesional forum and would prefer that you use your REAL name.
Thanks,
Cindy
PS, If you want to win you have to follow the rules
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sequence diagram is used for describing data flow among difference objects. It is useful when you need to figure out how the messages should be passed around to finish a task. collaboration diagram is more static. It basically tells you the relationship among the objects.
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought we can do all that we do in sequence diagram in collaboration diagram also, only the digram is different.
Am i wrong?
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They do two different things. The collaboration diagram shows the structural arrangement of classes that have interactions. The sequnce diagram shows how those interactions exist in time. A collaboration diagram will say that these two classes share a relationship. A sequence diagram will show the details of that relationship.
In our shop we rarely use collaboration diagrams except to hang on the wall of the war room where they look very impressive.
[This message has been edited by Thomas Paul (edited March 02, 2001).]
 
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Collaboration and sequence diagrams show pretty much the same information, how objects in a system communicate with each other, the information is presented differently. They are both classified as interaction diagrams. The sequence diagram emphasizes sequence (not a surprise! )while the collaboration diagram can be used to indicate how the objects are statically related.
I have never used a collaboration diagram myself. I much prefer the sequence diagram because I think it is much easier to read and understand how the objects are communicating. If I want to understand the static relationships I'll use a class diagram.
John
 
Author
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I agree that they contain the same information and that sequence diagrams are far more natural to create. I create the sequence diagrams and then make Rose auto-generate the collaboration diagram. The collaboration diagram emphasizes the connections between the objects and provides a valuable sanity check.
CT

------------------
C.T. Arrington
Author of Enterprise Java with UML
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic