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: