Nine types of UML diagrams

Source: Internet
Author: User
UML, as a design tool, focuses on practice, and this is inseparable from nine types of diagrams. drawing is done after watching the video. When I first started to draw a picture, my head was broken, I don't know where to start, so I learned the relationship between the nine images and the four types of graphs again before drawing the picture. I finally got a bit of an idea, this begins to draw. The nine types of UML diagrams include:

UML, as a design tool, focuses on practice, and this is inseparable from nine types of diagrams. drawing is done after watching the video. When I first started to draw a picture, my head was broken, I don't know where to start, so I learned the relationship between the nine images and the four types of graphs again before drawing the picture. I finally got a bit of an idea, this begins to draw. The nine types of UML diagrams include:

UML, as a design tool, focuses on practice, and this is inseparable from nine types of diagrams. drawing is done after watching the video. When I first started to draw a picture, my head was broken, I don't know where to start, so I learned the relationship between the nine images and the four types of graphs again before drawing the picture. I finally got a bit of an idea, this begins to draw. The nine types of UML diagrams include: use case diagram, object diagram, class diagram, component diagram, deployment diagram, state diagram, sequence diagram, activity diagram, and collaboration diagram. The four relationships and nine types of diagrams are the top priorities in UML learning. The most important thing in these nine types of diagrams is the use case diagram, class diagram, and sequence diagram, which can be digested after repeated learning.

I. Concepts

In these nine types of charts, they can be divided into static and dynamic graphs. Static graphs include class graphs, object graphs, use case graphs, component graphs, and deployment diagrams. dynamic graphs include status diagrams, sequence diagram, activity diagram, and collaboration diagram.

1. use case diagram)

It defines the functional requirements of the system. It looks at the system functions from outside the system and does not describe the specific implementation of the functions in the system.

2. class digraphs)

A description of the static structure used to define the relationship between classes in the system.

3. object diagrams)

Indicates the object instance of the class. It is usually used to show a complex class chart. It reflects the real instance and the relationship between them to help you understand the class.

4. Status chart (statechart diagrams)

Supplementary description of the thing described by the class, the possible states of all objects of the class, and the things that cause state changes.

5. Sequence Diagram (Sequence Diagrams)

It is also called the sequence diagram, which emphasizes the interaction diagram of the message time sequence, and describes the messages whose classes interact with each other to complete the expected behavior.

6. collaboration diagrams)

A collaboration diagram only models the relationships between objects that interact with each other and these objects, while ignoring other objects and associations.

7. activity digraphs)

A continuous activity flow is used to describe the activity status when an operation is executed.

8. component diagram (component diagrams)

It is mainly used to describe the dependencies between various software components.

9. deployment diagram (deployment diagrams)

Displays the physical architecture of software and hardware in the system. From the deployment diagram, you can understand the physical relationship between software and hardware components and the component distribution of processing nodes.

II. Application phase of nine types of Graphs

Requirement stage: use case diagram to describe the requirement

Analysis phase: class chart description static structure

Design Phase: Application of class charts and package charts to interfaces
Implementation Phase: component diagram and deployment Diagram

Iii. pkcompetition

1. Timeline and collaboration Diagram

Similarities:

(1) The sequence diagram and the cooperative plot are all Interactive graphs. They represent the interaction between objects and describe an interaction. They are composed of a group of objects and their relationships, messages transmitted between objects are also included,

(2) Time Sequence diagram and cooperative plot are equivalent.

(3) Both of them come from the same information of the UML meta-model, so their semantics is equivalent. They can be converted from one form of graph to another form of graph, without losing any information.

Differences:

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

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

2. Status chart and activity diagram

Similarities: they all belong to behavior graphs, which describe the dynamic behavior of objects.

Differences:

(1) different description objects:
Status chart: Describes the transition between object states. It mainly shows the State of the object.
Activity diagram: Describes the control flow from activity to activity. It mainly represents system actions.
(2) Use Cases are different:
Status chart: Describes the behavior changes of an object during its life cycle.
Activity diagram: describes the process changes.

3. Object diagram and class diagram

Similarities: an object chart is an instance of a class chart and uses almost the same ID as a class chart.

Difference: the object graph shows multiple object instances of the class, rather than the class of the instance. Because the object has a lifecycle, the object graph can only exist in a certain period of time in the system.

4. Activity diagram and use case diagram

The activity diagram is a refinement of the use case diagram.

5. status chart and class chart

A status chart is a supplement to a class chart and helps developers improve a class.

Iv. Summary

The nine types of UML diagrams focus on practice. They can only deepen their understanding of UML through repeated learning. Now, they are only a preliminary study of UML, and their understanding is not so deep. What is wrong, thank you!

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.