Collaboration diagram focuses on the message interaction and organizational structure between objects, and is a form of interaction diagram.
1. The collaboration diagram is composed of participants, objects, and message flow.
2. In the collaboration diagram, the association between objects is called a link, and the relationship between two objects is represented by lines.
3. The structure of message labels in the collaboration diagram is as follows: the sequential expression matches the message name. The following diagram shows a specific example of a message label.
4. The following figure provides a collaborative example of a printing task. The user role initiates a print request to the computer, which then passes the request to printserverwhileserverWhen it is idle, the task is transferred to the printer for printing.
5. The following figure depicts the collaboration case of taking the elevator, which reflects the link relationship.
6. Collaboration diagrams and sequential diagrams can be converted to each other, but the two are different in terms of expression.