Prefaceafter learning the UML time series diagram, we need to look at the UML collaboration diagram, because the two graphs are complementary. definitiondescribe the relationships between objects of mutual cooperation and only model the relationships between objects interacting with each other. compositionObjectat the same time as the sequence diagram, the collaboration diagram includes three naming methods: The first method includes the object name and the class name, the second method only shows the class name does not display the object name, that is, he is an anonymous object; The third way is to display only the object name does not display the class name.
chainSame as in the object graph, with a solid line of two-class roles to associate objects in a collaboration diagram, passing messages between different system objects. message the way the object communicates with the object. The arrows are passed along the message direction. Computer room charge system collaboration diagramyou are welcome to make valuable suggestions.
Summary collaboration diagrams and time series diagrams belong to the interaction diagram, which can be lossless, and they all represent interactions between objects. Time series diagrams focus on expressing chronological order, while collaboration diagrams focus on expressing relationships between objects, which can be converted directly when drawing these two graphs with a cartographic tool.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
UML Collaboration Diagram collaboration diagram (interaction diagram)