File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Sequence Diagram and Coollaboration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Sequence Diagram and Coollaboration " Watch "Sequence Diagram and Coollaboration " New topic

Sequence Diagram and Coollaboration

aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
WHat is difference betweeen Sequence Diagram and Coollaboration diagram
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
They use a different visual structuring to display the same information--how objects exchange messages.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Specifically, Collaboration diagrams are better for showing the dynamic structure of the system (which object collaborates with which others), whereas sequence diagrams concentrate on the timing aspect (which message gets send when).
Many UML tools are able to automatically convert one into the other.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Theoretically they contain the same information, give or take some special decoration. Rose can convert back and forth between them as different visualizations of the same model.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: Sequence Diagram and Coollaboration
It's not a secret anymore!