UML User Guide-UML diagram introduction, uml User Guide-uml

Source: Internet
Author: User

UML User Guide-UML diagram introduction, uml User Guide-uml

This section describes the UML diagram. Here we mainly introduce the UML diagram and the UML behavior diagram. Let's take a look at the detailed introduction of the UML diagram.

UML diagram

Here, we once again mention that the software architecture is visualized, detailed, structured, and documented. There are five most important complementary views: usecaseview and design view) process view, implementation view, and deploymentview ). Each view includes structure modeling (static thing modeling) and behavior modeling (dynamic thing modeling ).

UML contains nine types of diagrams, which are described in Chapter 2. The nine types of graphs can be divided into two types. One is used for Structural Modeling, called structure diagram, and the other is used for behavior modeling, called behavior diagram.

① Structure Diagram
There are four types of structure charts:
(1) classdigraphs)
A class diagram shows a group of classes, interfaces, collaboration, and relationships between them. Class diagrams can be used to describe the Static Design view of the system. Class Diagrams containing active classes can be used to describe the static process view of the system.

(2) objectdigraphs)
An object diagram in a UML diagram shows a group of objects and their relationships. The object graph is the data structure and static snapshot of the instance of the transaction found in the class graph. An object chart can also be used to describe the Static Design view and static process view of the system, but it is from the perspective of reality or prototype (because it is a class instance ).

(3) component Diagram)
The component diagram in the UML diagram shows a group of components and their relationships. The component diagram can be used to describe the static implementation view of the system.

(4) Implementation diagram (deploymentdigoal)
The implementation diagram in the UML diagram shows a group of nodes and their relationships. The implementation diagram can be used to describe the static implementation view of the system.

There are also some common variants of these four types of graphs. For example, a subsystem diagram is actually a class diagram.

② Behavior diagram
There are 5 behavior graphs:
(1) usecasedi.pdf)
The UML diagram uses a condition chart to organize the behavior of the system, describing a group of conditions, participants, and their relationships. The condition chart is used to describe the static usage view of the system.

(2) sequencedigoal and collaborationdigoal)
In a UML diagram, ordinal diagrams and cooperative diagrams are equivalent in semantics and can be converted to each other. The sequence diagram and collaborative plot are collectively referred to as the interaction diagram ). They display a group of objects and messages sent and received by these objects. The sequence diagram emphasizes the time order of the message, and the Collaboration diagram emphasizes the structure of the message sending object.

(3) statechartdi and activitydiagram)
The State and activity diagrams in a UML diagram are equivalent in semantics and can be converted to each other. A status chart shows a state machine consisting of States, transformations, events, and activities. It emphasizes the behavior of an object in the event order. Generally, a status chart is used to model interfaces, classes, or collaborative behaviors. The activity diagram shows the flow from activity to activity of the system, which emphasizes the control flow between objects. The activity diagram is usually used to model the functions of the system.
For a system, the five views mentioned above are not mandatory and can be cropped or supplemented according to the system's needs.

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.