UML diagram learning-Sequence Diagram (sequence diagram) and collaborative plot

Source: Internet
Author: User

In object-oriented dynamic modeling, four types of graphs are used to establish behavior interaction between entities: Stage divisor, sequence divisor, and communication divisor ), activity digraphs, where, "Sequence Chart"And"Collaboration diagram"Similar messages are expressed.

A sequence diagram (sequence disequence) describes the interaction between classes in a class system. It models these interactions into message SWAps. In other words, the sequence diagram describes the messages that exchange classes with each other to complete the expected behavior. The sequence diagram is clear. A well-designed sequence diagram shows the flow of system data from left to right and from top to bottom, paving the way for the subsequent system design.

Collaboration digoal/communication digoal is an interactive diagram that emphasizes the organizational structure between the objects that send and receive messages. A collaboration diagram shows the relationship between a series of objects and those objects, as well as the messages sent and received between objects. Objects are typically named or anonymous class instances, and can also represent instances of other things, such as collaboration, components, and nodes. Use a collaboration diagram to describe the dynamics of the system.

1. Knowledge Point Summary of Sequence Diagram (sequence diagram):

Click here to see the big picture

 

2. Collaboration diagram knowledge point Overview:

Click here to see the big picture

 

3: Sequence Chart

(1) first understand the sequence chart from the perspective of library borrowing/Returning books

The process of the program is clearly understood from the sequence diagram process.

 

(2) view the order chart during subway ticket purchasing activities

Part of the sequence diagram drawn based on the IDC Charging System

(3): Query Information from a general user perspective.

 

(4): The operator registers a new student account.

 

 

(5) Administrator's Basic System Data settings

4. Collaboration Diagram

(1) combine the process of borrowing/Returning books from the library. The order in which sequence numbers can occur

(2) learn the collaboration diagram from the perspective of subway Ticketing

 

 

 

(3) Collaboration diagram drawn from the perspective of the data room Charging System

 

General user query information:

(4) operator Registration Card

(5) Administrator modify basic data

 

5. Differences and connections between a collaboration diagram and a sequence diagram

 

The collaboration diagram and sequence diagram both indicate the interaction between objects, but they have different focuses.

The sequence diagram clearly indicates the time sequence (emphasizing time) in the interaction, but does not explicitly indicate the relationship between objects. A collaboration diagram clearly indicates the relationship between objects (emphasizing space), but the time sequence must be obtained from the sequence number. The collaboration diagram and sequence diagram can be converted to each other.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.