0% found this document useful (0 votes)
113 views

What Is Communication Diagram?

A communication diagram shows the interactions between objects through messaging. It displays objects, their relationships, and the messages passed between them. Communication diagrams are similar to sequence diagrams but arrange elements spatially rather than temporally. They are useful for visualizing object relationships and determining the accuracy of class diagrams. A communication diagram example shows a hotel reservation with numbered messages to indicate the order objects send and receive information.

Uploaded by

abouanane
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views

What Is Communication Diagram?

A communication diagram shows the interactions between objects through messaging. It displays objects, their relationships, and the messages passed between them. Communication diagrams are similar to sequence diagrams but arrange elements spatially rather than temporally. They are useful for visualizing object relationships and determining the accuracy of class diagrams. A communication diagram example shows a hotel reservation with numbered messages to indicate the order objects send and receive information.

Uploaded by

abouanane
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

What's New Features Tutorials Support Pricing Try Now Request Demo

What/
HOME isSUPPORT
Communication Diagram? DIAGRAM?
/ WHAT IS COMMUNICATION

Purpose of Communication

What is Communication Diagram?


Diagram

At a Glance

Example: Hotel Reservation

Seq. vs Communication Diagram

Example: Seq. vs Communication


Diagram

Communication Diagram
Examples

Message Numbering

Seq. to Communication Diagram

Related Links
UML communication diagrams, like the sequence diagrams - a kind of interaction diagram, shows how objects
interact. A communication diagram is an extension of object diagram that shows the objects along with the
messages that travel from one to another. In addition to the associations among objects, communication
diagram shows the messages the objects send each other.

Learn UML Faster, Better and Easier


Are you looking for a Free UML tool for learning UML faster, easier and quicker?
Visual Paradigm Community Edition is a UML software that supports all UML diagram
types. It is an international award-winning UML modeler, and yet it is easy-to-use,
intuitive & completely free.

Free Download

Purpose of Communication Diagram


Model message passing between objects or roles that deliver the functionalities of use cases and operations

Model mechanisms within the architectural design of the system

Capture interactions that show the passed messages between objects and roles within the collaboration
scenario

Model alternative scenarios within use cases or operations that involve the collaboration of di!erent objects
and interactions

Support the identi"cation of objects (hence classes), and their attributes (parameters of message) and
operations (messages) that participate in use cases

Communication Diagram at a Glance


In the example of the notation for a communication diagram, objects (actors in use cases) are represented by
rectangles. In the example (generic communication diagram):

The objects are Object1, Object2, Object..., ObjectN-1 ..., and ObjectN.

Messages passed between objects are represented by labeled arrows that start with the sending object
(actor) and end with the receiving object.

The sample messages passed between objects are labeled 1: message1, 2: message2, 3: message3, etc.,
where the numerical pre"x to the message name indicates its order in the sequence.

Object1 "rst sends Object2 the message message1, Object2 in turn sends ObjectN-1 the message
message2, and so on.

Messages that objects send to themselves are indicated as loops (e.g., message message5).

Communication Example - Hotel Reservation

Each message in a communication diagram has a sequence number.

The top-level message is numbered 1.

Messages sent during the same call have the same decimal pre"x, but su#xes of 1, 2, etc. according to
when they occur.

Communication Diagram vs Sequence Diagram


The communication diagram and the sequence diagram are similar. They're semantically equivalent, that is,
the present the same information, and you can turn a communication to a sequence diagram and vice versa.
The main distinction between them is that the communication diagram arranged elements according to space,
the sequence diagram is according to time.

Of the two types of interaction diagrams, sequence diagrams seem to be used far more than communication
diagrams. So, why would you use communication diagrams? First of all, they are very useful for visualizing the
relationship between objects collaborating to perform a particular task. This is di#cult to determine from a
sequence diagram. In addition, communication diagrams can also help you determine the accuracy of your
static model (i.e., class diagrams).

Example - Sequence diagram vs Communication (Library Item Overdue)

If you open this sequence diagram in Visual Paradigm you can automatically generate the communication
diagram shown in "gure below:

Note: If you compare the two diagrams, you'll see they both contain objects and messages. It also becomes
clear that it's much easier to determine the time ordering of messages by looking at the sequence diagram
and it's easier to see the relationships between objects by looking at the communication diagram.

Communication Diagram Elements


Objects participating in a collaboration come in two $avors: supplier and client.

Supplier objects are the objects that supply the method that is being called, and therefore receive the
message.

Client objects call methods on supplier objects, and therefore send messages.

Links

The connecting lines drawn between objects in a communication diagram are links.

These links are what set communication diagrams apart from sequence diagrams. They enable you to see
the relationships between objects.

Each link represents a relationship between objects and symbolizes the ability of objects to send messages
to each other.

If an object sends messages to itself, the link carrying these messages is represented as a loop icon. This
loop can be seen on both the UI object and the Transaction object.

Messages in communication diagrams are shown as arrows pointing from the Client object to the Supplier
object. Typically, messages represent a client invoking an operation on a supplier object. They can be modeled
along with the objects in the following manner:

Message icons have one or more messages associated with them.

Messages are composed of message text pre"xed by a sequence number.

This sequence number indicates the time-ordering of the message.

For example, in the communication diagram in the "gure below, you can follow the sequence numbers to
determine the order of messages between objects:

Understanding the Numbering of Messages in Communication Diagram


The "rst message in a communication diagram is always numbered 1, the second is 2, and so on.

You can indicate that a message is nested under a parent message by adding a decimal point and
incremental digits to the parent's sequence number.

For example:

Based on the example above, the "CalAmtCanBorrow" message is the "rst nested message under
"EnquireBorrower" and is given the sequence number 1.1. The second nested message under
"EnquireBorrower" is "DisplayInvalidMsg", so it's given a sequence number of 1.2.

Example - From Sequence Diagram to Communication Diagram

Note that:

Focus of control: also called execution occurrence/activation. It shows as tall, thin rectangle on a lifeline
that represents the period during which an element is performing an operation.

The top and the bottom of the rectangle are aligned with the initiation and the completion time
respectively.

In communication diagram focus of control is explicit and thus, can be represented by the message nest
numbering.

Try to Draw Communication Diagram Now


You've learned what a Communication Diagram is and how to draw a
Communication Diagram. It's time to draw a Communication Diagram of
your own. Get Visual Paradigm Community Edition, a free UML software,
and create your own Communication Diagram with the free
Communication Diagram tool. It's easy-to-use and intuitive.

Free Download

Related Links

1. What is Uni!ed Modeling Language?

2. Professional UML tool

Turn every software project into a successful one.

Try Visual Paradigm Free

Product Support Learn About Us

Features Forums Community Circle Visual Paradigm

Editions Request Help Know-how Newsroom

Try Now Customer Service Demo Videos YouTube Channel

Pricing Tutorials Academic Partnership

Visual Paradigm Online Documents

@2020 by Visual Paradigm. All rights reserved. Legal Privacy statement


      

You might also like