Simple knowledge of UML language

Source: Internet
Author: User

In the course of learning to use a number of block diagrams, for drawing block diagram of the language is numerous, this article will be used in the study of a drawing block language to do a simple introduction.

Go straight to the subject, using a visual object-oriented Modeling language---UML,UML uses some standard circular elements to represent the object model intuitively, so that people like building workers for many years using architectural drawings, the main introduction of UML common diagram usage.

Use case Diagram: Describes the system function from the user's perspective. A visual way to understand the functional requirements of the system, and its content: role---> System boundaries, that is, the user of the system-specific functions, human-shaped symbol representation. Use case---A function of the > system, which is represented by an ellipse symbol. Role and use case relationships---> usage relationships, solid line arrowhead notation. Relationship between use cases---> There may be relationship inclusions or extensions, including a use case that contains another use case feature, whereas an extended relationship refers to one use case inheriting another use case function.

Class Diagram: Describes the relationships between classes in the object model. Its contents: The main elements in the class---> Block diagram, the rectangle representation. The upper level represents the class name, the middle level represents the attribute, and the lower level is the behavior that is called the method. The class name of an abstract class is expressed in italics, and the method is similar. The relationships between classes---> Include associations, dependencies, aggregation, generalization, and implementation of these 5 relationships.

Panel class: Draws a user-specified shape.

Shapefactory class: Creates the corresponding Shape object from the specified shape.

Shape class: Draws a shape, which is an abstract class.

Circle class: Draws a circle.

Line class: Draw a straight path.

Rectangle class: Draw a rectangle.

The relationship between them: panel and Shapefactory class dependencies, which call the Getshape method of the latter, and a dependency between the Panel class and the Shape class, which calls the latter's draw method The Shapefactory class and the shape class are also dependencies, and the Shapefactory class constructs a Shape object, and the shape class is the parent class of several of its classes, with a generalization relationship between the shapes class and the shape class.

Time series diagram (Sequence Diagram): Describes the interactions between objects, shows the dynamic collaboration relationships between objects, the chronological order in which messages are sent, and shows the interaction. There are two dimensions: the horizontal dimension---> The process of sending messages between the display objects; the vertical dimension---> displays the order in which messages are sent.

1. The user selects a specific shape type.

2. The artboard Gets the Shape object from the shape factory.

3. A shape factory creates a Shape object.

4. The artboard calls the Shape object painting method to draw the shape.

Collaboration diagram (Cooperation Diagram): Describes the interaction between objects, can visually display the collaboration between objects, and timing diagram is called the interaction diagram.

State Transition Diagram: Describes all possible states of an object and the transition conditions that result in state transitions. It includes the basic elements:

The initial point---> is represented by a solid circle;

Transitions between states---> arrows are indicated;

State---> Rounded rectangle representation;

The end point---> a circle representation containing a solid circle inside.

Component Diagram (Component Diagram): An organization that describes the dependencies between each software component in the system or the source code of a component.

Deployment diagram (Deployment Diagram): Describes the hardware and software physical architecture of the system. Displays the computer and device and the connection between them, as well as the layout of the software in the hardware environment.

Start to look at the time may have a lot of proper nouns do not know what meaning, reading is not just reading, sometimes need to know how to give up temporarily, only need to remember and how to use, when you look back on the pondering may be suddenly dawu ...

Http://www.cnblogs.com/JustOnly/p/4021136.html

Simple knowledge of UML language (GO)

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.