UML's five types (UML notes)

xiaoxiao2021-03-06  69

The content of UML can be defined by the following five types (a total of 9 graphics):

· The first category is the example of the example, from the user's perspective, and points out the operator of each function.

• The second category is a static diagram, including class diagrams, object maps, and package diagrams. One of the class diagrams describe the static structure in the system. Not only define classes in the system, but also the connection between the classes such as association, dependence, polymerization, etc., but also include the internal structure of the class (class properties and operation). The class diagram describes a static relationship that is valid throughout the entire life cycle of the system. The object map is an instance of a class diagram, which is almost identical to the same identity as the class diagram. Their differences are that the object chart displays a plurality of object instances of the class, not the actual class. An object map is an instance of a class diagram. Since the object is there in life cycle, the object map can only exist at a certain period of time. The package is composed of a package or class, indicating the relationship between the package and the package. The package diagram is used to describe the hierarchical structure of the system.

• Third category is a dynamic model of behavior (Behavior Diagram) describing the dynamic model of the system and integration between objects. Where a state diagram describes the objects of the class objects all possible states and the transfer condition of the event when the event occurs. Typical state diagrams are supplemented to class diagrams. In practice, it is not necessary for all class pictures, only for those types of pictorial pictures that have multiple states of their behavior affected by the external environment and changes. The activity diagram describes the activities that meet the activities you have to do with the use of examples and the constraint relationship between the activity, which is conducive to identifying parallel activities.

• The fourth class is interactive relationship between interactive diagram descriptions. Where sequential diagram shows the dynamic partnership between objects, it emphasizes the order of messaging between objects, and simultaneously displays interactions between objects; cooperation diagram describes collaborative relationships between objects, cooperation graphs, similar, displayed Dynamic partnership. In addition to displaying information exchange, the cooperation map also displays the object and the relationship between them. If you emphasize the time and order, use sequence diagrams; if you emphasize the upper and lower level relationships, select a collaboration. These two graphs are called interactive diagrams.

· Fifth category is Implement Diagram. The component diagram describes the physical structure of the code component and the dependencies between the components. One component may be a resource code component, a binary component or an executable component. It contains information about logical classes or implements classes. The component diagram helps to analyze and understand the interaction between components. Configure the physical architecture of the hardware and software in the system. It can display actual computers and devices (represented by node) and their connection relationships, or display the type of connection and dependence between components. Inside the node, place the executable part and objects to display the corresponding relationship between the node with the executable software unit.

From the perspective of the application, the first is the need for an object-oriented technology design system; secondly according to the requirements of the system's static model to construct the structure of the system; the third step is to describe the behavior of the system. The model established in the first step and the second step is static, including five graphics such as examples, class diagrams (including packets), object maps, component diagrams, and configuration diagrams, etc., are static Modeling mechanism. The model established in the third step or can be executed or indicated in the timing state or interaction relationship. It includes four graphics such as state diagrams, active diagrams, sequence diagrams, and collaborators such as standard modeling language UML dynamic modeling mechanism. Therefore, the main content of the standard modeling language UML can also be summarized as a static modeling mechanism and a dynamic modeling mechanism.

转载请注明原文地址:https://www.9cbs.com/read-89598.html

New Post(0)