UML Diagrams
Sequence Diagram
O/R Mapping
Mac OS X
Tips and Tricks
VP Suite
Change Log

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.

  1. 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.
    sync_sequence_and_collaboration_diagrams-1.jpg

    Method 2 - Creating a sequence diagram from the toolbar:
    Click on the New Sequence Diagram button sync_sequence_and_collaboration_diagrams-2.jpg from the toolbar. A new sequence diagram will be created.
    sync_sequence_and_collaboration_diagrams-3.jpg

    Method 3 - Creating a sequence diagram from the Diagram Netvigator:
    1. Right click on the Sequence Diagram from the Diagram Navigator on the left side.
    2. Click on the Create Sequence Diagram from the pop-up menu. A new sequence diagram will be created.
      sync_sequence_and_collaboration_diagrams-4.jpg

  2. 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.
    sync_sequence_and_collaboration_diagrams-5.jpg

  3. 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.
    sync_sequence_and_collaboration_diagrams-6.jpg

  4. 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.
    sync_sequence_and_collaboration_diagrams-7.jpg

  5. 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.
    sync_sequence_and_collaboration_diagrams-8.jpg

  6. Repeat step 4 and 5 to create another message and return message and rename them as input password and display menu respectively.
    sync_sequence_and_collaboration_diagrams-9.jpg

  7. Right click and hold on the mouse to draw a line from left to right.
    sync_sequence_and_collaboration_diagrams-10.jpg

  8. A Communication Diagram is generated automatically.
    sync_sequence_and_collaboration_diagrams-11.jpg

  9. 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.
    sync_sequence_and_collaboration_diagrams-12.jpg

Related Articles

Resources

 
 
Last modified: 2006/01/18 03:55
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory