What are sequence diagrams, collaboration diagrams and
difference between them ?
Answers were Sorted based on User's Feedback
Answer / naveen verma
Sequence diagram is basically a flow chart w.r.t time.
However, a collabration diagram is very much the sequence
diagram without any time. Collaboration diagrams basically
shows the interaction of the various objects.
Is This Answer Correct ? | 61 Yes | 11 No |
Answer / burak
A sequence diagram shows object interaction arranged in
time sequence. It depicts the objects and classes involved
in the scenario and the sequence of messages exchanged
between the objects needed to carry out the functionality
of the scenario. While a collaboration diagram is an
alternative way to show a scenario. Object interactions are
organised around the objects and their links to each other.
A collaboration diagram contains: - objects drawn as
rectangles, links between objects shown as lines connecting
the linked objects, messages shown as text and an arrow
that points from the client to the supplier
Is This Answer Correct ? | 36 Yes | 9 No |
Answer / singhal
1:
In Sequence diagrams we can show Synchronous as well as
Asynchronous messages.
In Collaboration Diagram we can only show Synchronous messages.
2:
Sequence Diagram shows overall flow of System event/s in a
given use case.
Collaboration diagram shows how objects interacts with each
other or how intercommunication b/w objects for a give use case
3:
Its difficult to fine the responsibilities of objects in
sequence diagram.
Its ease to detect the responsibilities of objects in
collaboration diagram by just counting the number of arrows
coming into the object.
4:
Sequence Diagrams are less spatial.
Collaboration Diagram are much spatial.
Is This Answer Correct ? | 17 Yes | 1 No |
Answer / senthil kumar
Sequence diagram gives you time based interation between
the objects.
Collaboration diagram tell how the objects are associated.
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / ashok
Sequence diagrams provide the users and life time of the
each object. Action between to object. sequence steps
achieve a functionalities.
collaboration diagrams also provide Action between to object
(interaction object). sequence steps achieve a
functionalities. colloboratin diagram will not repersent
life time of the object
Is This Answer Correct ? | 18 Yes | 15 No |
Answer / saleem
A sequence diagram shows object interaction arranged in
time sequence. It depicts the objects and classes involved
in the scenario and the sequence of messages exchanged
between the objects needed to carry out the functionality
of the scenario. While a collaboration diagram is an
alternative way to show a scenario. Object interactions are
organised around the objects and their links to each other.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / parminder
Sequence diagrams and collaboration diagrams are essentially
semantically equivalent. You can use either to model the
dynamic aspects of a system in terms of objects interacting
by exchanging messages. The difference is more in how the
information is presented than in the underlying semantics of
the diagram. Sequence diagrams emphasize the time ordering
of messages, whereas collaboration diagrams depict more of
an organizational structure and are more space efficient.
Many UML tools will automatically convert from one diagram
type to the othe
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / sid malik
A sequence diagram is dynamic interaction in time ordering but in Collaboration diagram is similar to Sequence diagram without time ordering it show the dynamic interaction in the objects. Both are called the communication or interaction diagrams. it show the objects and their association with other object in the system and tell how they communicate with each other. but in sequence diagram there is no association of objects to interacts with each other. Use sequence diagram to model flow of control by time ordering but use collaboration diagrams to model flow of control by organization. the messages passed between the objects convey the same information as sequence diagrams, but focus on object roles instead of the time sequence.
Is This Answer Correct ? | 0 Yes | 0 No |
How might prototyping be used as part of the SDLC?
What is difference between GoF and J2EE patterns?
Is mvc is a design pattern?
Why do we need singleton pattern?
When singleton pattern is used?
Contact a system development program in your organization. Research how they analyzed their SYSTEM OF INTEREST (SOI), its OPERATING ENVIRONMENT, and their respective system elements. How was this analysis reflected in the SOI architecture?
What is design pattern ?
What is 'good design'?
What are the disadvantages of singleton pattern?
What are the 23 design patterns?
What is singleton design pattern in java?
What is clean architecture?