Difference Between Sequence and Collaboration

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Difference between Sequence diagram and Collaboration diagram

A Sequence diagram is an interaction diagram that details about the operation that is carried out.
Sequence diagram captures the interaction between the objects in the context of collaboration.
Sequence diagrams are time focused and they show the order of the interaction visually by using
the vertical axis of the diagram to represent time.

Example:

Collaboration Diagram represents the interaction of the objects to perform the behavior of a
particular use case or a part of use case. The designers use the Sequence diagram and
Collaboration Diagrams to define and clarify the roles of the objects that perform a particular
flow of events of a use case.

Example:
Similarities Between Sequence and Collaboration Diagram

1. In Unified Modelling Language both the sequence diagram and collaboration diagram are
used as interaction diagrams.
2. Both the diagrams details about the behavioral aspects of the system.

Differences Between Sequence and Collaboration diagram:

Sequence Diagrams Collaboration Diagrams


The sequence diagram represents the The collaboration diagram also comes
UML, which is used to visualize the under the UML representation which is
sequence of calls in a system that is used used to visualize the organization of the
to perform a specific functionality. objects and their interaction.
The collaboration diagram are used to
The sequence diagram are used to
represent the structural organization of the
represent the sequence of messages that
system and the messages that are sent and
are flowing from one object to another.
received.
The sequence diagram is used when time The collaboration dagram is used when
sequence is main focus. object organization is main focus.
The collaboration diagrams are better
The sequence diagrams are better suited of
suited for depicting simpler interactions of
analysis activities.
the smaller number of objects.

You might also like