Seven types of UML Modeling Language (taking the bank ATM system as an example)

Source: Internet
Author: User

1 use case diagram:
Describes a function unit provided by the system. A visual understanding of the functional requirements of the system, the relationship between "Roles" and use cases in the system.
In this example, the participant "bank depositor" and the ATM. The simplified ATM only supports withdrawals, deposits, and deposits. Other functions are not described in detail.

Two types of graphs:
Displays the static structure of the system. Logical class, implementation class, implementation class isProgramThe entity processed by the worker. Class is described using a rectangle that contains three parts in the class diagram, as shown in figure 2. The top part shows the class name, the middle part includes the class attributes, and the bottom part contains the class operations (or "methods ").
In this example, many individual accounts constitute the account library. The account has three attributes: Account type, account number, and balance. Many bank depositors make up a depositor database. The ATM system includes many ATM machines. What are the attributes and operations of bank depositors and ATM machines? their visibility and return types, number of parameters, and parameter types are clearly displayed in the class diagram. A class chart not only allows designers to clearly express their design intent, but also helps them sort out their own ideas and enrich and optimize their own designs.

3. Sequence diagram:
Shows the detailed process of a specific use case (or a part of the use case. It is almost self-describing and displays the call relationships between different objects in the process. It also shows different calls to different objects in detail. A sequence chart has two dimensions: the vertical dimension displays the message/call sequence in the order of occurrence, and the horizontal dimension displays the object instance to which the message is sent.
This example describes the flow of information when a customer withdraws money from an ATM in chronological order. The sequence diagram focuses on the time sequence of message transmission between objects.

4 status chart:
Indicates the status transition information of a class and its status. There are five basic elements: the initial starting point, which is drawn using a solid circle; the transition between States, which is drawn using a line segment with an open arrow; The State, which is drawn using a rounded rectangle; judgment point, which is drawn using a hollow circle; and one or more ending points, which are drawn using a circle containing a solid circle.
This example describes several states that a customer can perform operations on an ATM and the conditions for switching between States. Because it is a simplified example, in addition to waiting for the initial status of the customer to insert the magnetic card and the termination status of the end service, the customer will be in four states: enter the password, select the service type, deposit and withdrawal.

5 activity diagram:
Indicates the process control flow between two or more objects when processing an activity. It is suitable for modeling high-level processes, such as how the company operates its business. As an option, activities can be grouped into swimming lanes, which are used to represent objects that actually execute activities.
The sequence diagram focuses on the order of time, while the activity diagram focuses on the mutual constraints between various parts, which can be effectively expressed for some parallel activities.

6 component diagram:
Provides a physical view of the system to display the dependencies between software in the system on other software components (such as library functions.
7 deployment diagram:
Deploy the software system to the hardware environment. The purpose is to show where different components of the system will run physically and how they will communicate with each other.
The deployment diagram (collaboration diagram) focuses on expressing the static connection between objects, which is one-to-one correspondence with the message passing in the sequence 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.