UML: Views in UML

Source: Internet
Author: User

If the elements in UML are basic words, the view is the syntax.

Sort out the views in UML:

Static View:

As the name implies, a static view is a view that expresses static things. It only describes the static structure of a thing and its dynamic behavior. Examples, class charts, and package charts are provided.

Use Case Diagram: Use Case Diagram is the first step from software requirement analysis to final implementation. It describes how people want to Use a system. It presents some participants and some use cases, as well as their relationships. It is mainly used to model the functional behaviors of systems, subsystems, or classes.

A Use Case chart consists of actors, Use cases, system boundaries, and arrows.

 

Class diagram: Class digraphs display the static structure of the model, especially the internal structure of classes and classes in the model and their relationships with other classes. The class diagram shows the class, interface, and static structure and relationship between them. It is used to describe the structural design of the system.

A Class diagram usually contains the following content: Class, Interface, Collaboration, Dependency (Dependency, generalized Generalization, associated Association, and Realization ).

 

Package diagram: a general mechanism for organizing multiple elements into semantic-related groups. A package can be directly understood as a namespace, a folder, which is used to organize the encapsulation of graphics. A package chart can be used to express the organizational layers of the namespace of a function group.

 

Dynamic View:

UML uses dynamic views to express behavioral characteristics. It mainly includes the status chart, activity chart, sequence chart, and collaborative drawing.



Status chart: status chart describes the dynamic behavior of an object over time by establishing a life cycle model of the object. It displays a state machine.


Activity diagram: it describes the activity sequence and shows the control flow from one activity to another. An activity chart is essentially a flow chart. It focuses on the control flow from one activity to another and is an internal processing-driven process. The status chart focuses on the process from one state to another, with the participation of external events.


A time sequence diagram is used to describe the interaction mode between objects in chronological order. It displays these objects according to the "lifeline" of the objects involved in the interaction and the messages they send to each other. The sequence diagram contains the instance of the main character of the object and the message that describes how they interact.

The timeline consists of four elements: Object, Lifeline, Message, and Activation ). In the UNL, the sequence graph represents the Interaction relationship as a two-dimensional graph. The vertical axis is the timeline, and the time goes down along the vertical line.


Collaboration Diagram: colcollaboration Diagram is another way to represent interaction outside the sequence Diagram. Unlike the time sequence diagram, a collaboration diagram describes information related to the object structure. A collaboration chart is used to represent the implementation of class operations.

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.