Synchronization between Sequence Diagram and Communication Diagram
Both sequence diagram and communication diagram are called interaction diagrams that illustrate the dynamic view of a system which emphasizing on different things. Sequence diagram emphasizes the time ordering of messages while communication diagram emphasizes the structural organization of the objects that send and receive messages. Using VP-UML, you can synchronize the sequence diagram to the communication diagram and vice versa which enables you to oversee different emphases from both diagrams.
Create a sequence diagram by any of these 3 methods listed below.
Method 1- Creating a sequence diagram from the menu bar:
On the menu, select
File > New Diagram > UML Diagrams > Sequence Diagram. A new sequence diagram will be created.
Method 2 - Creating a sequence diagram from the toolbar:
Click on the
New Sequence Diagram button

from the toolbar. A new sequence diagram will be created.
Method 3 - Creating a sequence diagram from the Diagram Netvigator:
Right click on the Sequence Diagram from the Diagram Navigator on the left side.
Click on the
Create Sequence Diagram from the pop-up menu. A new sequence diagram will be created.
Draw a
lifeline by choosing the
LifeLine icon on the diagram palette then click on the diagram. Rename the lifeline as
System by double-clicking on the lifeline then pressing
Ctrl+Enter to finish the operation.
Add an actor to the sequence diagram by choosing the
Actor icon on the diagram palette and then click on the diagram. Rename the actor as
Customer.
Add a message from
Customer to
System using the resource centric feature by clicking on the
Message → LifeLine resource of the
Customer actor and drag it to the
System lifeline. Rename the message as
insert card.
Create a return message using the resource centric feature by click on the
Create Return Message resource of the
insert card message. Rename the return message as
prompt for password.
Repeat step 4 and 5 to create another message and return message and rename them as
input password and
display menu respectively.
Right click and hold on the mouse to draw a line from left to right.
A Communication Diagram is generated automatically.
Hold on the right mouse button and draw a line from right to left, then the communication diagram will synchronize back to the sequence diagram. After synchronization, the sequence diagram will be displayed as the active diagram.
Related Articles
Resources