Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between sequence diagram and communication diagram?

Could anyone explain me what is the difference between sequence diagram and communication diagram?

like image 229
Quang Huynh Avatar asked Apr 10 '12 07:04

Quang Huynh


People also ask

What is the difference between a communication diagram and a sequence diagram quizlet?

A communication diagram emphasizes the flow of messages through a set of objects, while the sequence diagram focuses on the time ordering of the messages that are being passed.

What is the main difference between a sequence diagram and a collaboration diagram?

Differences Between Sequence and Collaboration diagram: The sequence diagram are used to represent the sequence of messages that are flowing from one object to another. The collaboration diagram are used to represent the structural organization of the system and the messages that are sent and received.

Can a sequence diagram be replaced by communication diagram?

Can a sequence diagram be replaced by communication diagram? It is generally assumed that sequence diagrams and communication diagrams (formerly known as collaboration diagrams) are equivalent and could be converted into each other.

What is the difference between lifeline in a sequence diagram and a communication diagram?

In sequence diagram lifeline the element exists and potentially takes part in the interaction. In communication diagram lifeline represents an individual participant in the interaction.


2 Answers

emphasizing the time ordering of messages (using sequence diagrams)

emphasizing the structural relationships among the objects that interact (using communication diagrams).

reference :UML user manual

like image 21
user2019510 Avatar answered Oct 24 '22 00:10

user2019510


Both diagrams give the same information, but the sequence diagram emphasizes time in its layout and the communication diagram emphasizes the objects that are communicating in its layout.

Time is implicit in sequence diagrams (it is inferred by vertical position), while it is given explicitly in communication diagrams (via numbers).

To quote Scott Ambler

The main difference between communication diagrams and sequence diagrams is that sequence diagrams are good at showing sequential logic but not that good at giving you a “big picture view” whereas communication diagrams are the exact opposite.

like image 61
Ray Toal Avatar answered Oct 24 '22 01:10

Ray Toal