Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

difference between sequence and collaboration diagrams

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am learning UML and new to this, can anyone suggest me a good site to learn all the stuff regarding UML.

What is the difference between Sequence and collaboration diagrams?

Thanks,
Chitti.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a nice short, free overview: http://www.agilemodeling.com/essays/umlDiagrams.htm The rest of the site is worth browsing, too.

These two diagrams contain a lot of the same information and tools like Rational (IBM) Rose can convert one diagram to the other. Most find that collaboration better communicates the relationships between objects while sequence better communicates lower level details.
 
author
Posts: 608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Stan.

Sequence diagrams are good for showing sequential logic, I like to characterize them as visual source code although they can be used for higher level logic too.

Collaboration diagrams, in UML 2 they're called communication diagrams (sigh), are good for showing a bird's eye view of collaborating objects.

They're both good diagrams. Depending on what you're trying to understand, and the people you're working with, one will work better than the other for you. Sequence diagrams seem to be more popular, but they're both useful.

- Scott
 
author
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the reason that people use sequence diagrams more often is because it is easier to lay out objects in a line than it is to lay them out in 2D without regretting where you've placed them.

Personally, I like collaboration diagrams a little better. They tend to emphasize the "players" more than the algorithm.
 
Get me the mayor's office! I need to tell him about this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic