After reading the UML video, I want to start drawing documents. I don't know how to start! Let's summarize the nine types of diagrams and relationships in UML, and then start with the document. First.
The nine types of UML diagrams are: use case diagram, class diagram, object diagram, state diagram, activity diagram, collaboration diagram, sequence diagram, component diagram, and deployment diagram.
Use case diagram: a dynamic view that consists of participants, use cases, and relationships between them to describe system functions. It is used to analyze the functions of the system and determine the interaction between the system and the system's external (roles.
Class diagram: displays the class, interface, and static structure and relationship between them. It is used to describe the structural design of the system.
Object graph: displays the relationship between a group of objects and them. Similar to a class chart. The object graph shows multiple object instances of the class, rather than the actual class. An object graph is an instance of a class graph.
Status chart: Describes the dynamic behavior of an object during its survival, and shows the sequence of states and accompanying actions experienced by the object response time.
Activity diagram: Activity diagram is a special form of state diagram. Focuses on the work completed in the implementation of operations (methods) and the activities in case instances or objects. It is a variant of the status chart.
Collaboration diagram: an interactive diagram. It emphasizes the Organizational Relationship between sending and receiving message objects. The interaction process between objects and the association between objects.
Sequence diagram: a sequence diagram is used to display the interaction between objects in a series of interactions. It displays the dynamic collaboration between multiple objects by describing the time sequence in which messages are sent between objects.
Component diagram: describes various components of the software and their dependencies. A component diagram usually contains three elements: component, interface, and dependency ).
Deployment diagram: defines the physical architecture of the hardware in the system to describe the actual physical devices and their relationships.
Similarities and Differences
Status chart vs activity chart
Commonalities:
Both the status chart and activity chart describe system status transfer.
Differences:
The activity diagram mainly describes the action and the result of the object state change.
The status chart mainly describes the impact of events on Object states.
Sequence diagram vs collaboration Diagram
Commonalities:
Sequence Diagrams and cooperative diagrams are mainly used to describe object communication and interaction.
Differences:
The sequence diagram emphasizes time.
The collaboration diagram emphasizes space.
I have summarized so many things that I can't do without theory. I need to practice more based on the specific examples below.
9 types of UML diagram Summary