Dynamic diagram __uml of UML nine kinds of graphs

Source: Internet
Author: User

Come on, let's move on to the dynamic map.


A, state diagram


A statechart diagram is used primarily to describe the dynamic behavior of an object during its lifetime. In other words, the system has a state, then the action, the transformation into a different state. To give a chestnut, the user is in the machine state, click the next Machine button, into the machine state. Of course, there may be insufficient balance, or what the failure, the system forced the machine.



Second, sequence diagram


The sequence diagram represents the interaction relationship as a two-dimensional graph, the longitudinal is the timeline, and the horizontal representation of each individual object. Arrows are arranged from top to bottom in the graph in chronological order.



Iii. activity diagram


Activity diagrams are generally used to describe related use case diagrams. The more serious argument is to describe the activities that are required to satisfy the use case requirements and the constraints between activities.



Iv. Collaboration diagram


A collaboration diagram is an interaction diagram that emphasizes the organizational structure between objects that send and receive messages. The following image is a process of machine down.




Conclusion: The differences and connections between these graphs are very important.


Sequence Diagram & Collaboration diagram


Same point:

(1) are interactive graphs that represent interactions between objects, describe an interaction, consist of a set of objects and their relationships, and also include messages passed between objects.

(2) Sequence diagram and collaboration diagram are equivalent

(3) both come from the same information in the UML Metamodel, so their semantics are equivalent, they can convert from one form of graph to another, without losing any information.

Different points:

A collaboration diagram emphasizes space, but the time sequence must be obtained from the serial number.

The timing diagram emphasizes time but does not express the relationship between the objects clearly.


Second, State diagram & activity diagram


The same point: all belong to the behavior map, are describing the dynamic behavior of the object.

Different points:

(1) Different description objects:

State diagram: Describes the transition between an object's state and its state, which mainly shows the state of the object.

Activity diagram: Describes the control flow from activity to activity, and it mainly behaves as a system action.

(2) Different use occasions:

State diagram: Describes the behavior state changes of an object during its lifetime.

Activity diagram: Describes process changes for a procedure.


Iii. state diagram & Class diagram


A state diagram is a supplement to a class 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.