UML-interaction Diagram

Source: Internet
Author: User

The interaction diagram is used to describe how objects interact in the system, that is, how a group of objects transmit messages.

Interaction is mainly used to describe the dynamic behavior of collaboration.

When modeling interactions, it usually includes objects (each object assumes a specific role), messages (each message represents the communication activity between objects, and cause certain actions ).

The interaction diagram includes:

Sequence diagram: emphasizes the time sequence of messages.

Collaboration diagram: emphasizes the interaction between objects.

Both show mutual, but they emphasize different aspects. The sequence diagram clearly shows the time order, but does not explicitly specify the relationship between objects. A collaboration diagram (also called a collaboration diagram) clearly shows the relationship between objects, but the time order must be obtained from the sequence number. Sequence diagrams are often used for scenario display. collaboration diagrams are more suitable for displaying process design details. Therefore, when an object and its connections are helpful for understanding interaction, select a collaboration diagram. When you only need to know the sequence, select a sequence diagram.

 

Student registration sequence diagram:

Conversion collaboration diagram:

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.