In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what are the five types of diagrams in the unified modeling language UML. I hope you will gain something after reading this article. Let's discuss it together.
1. The content of the standard modeling language UML
First of all, UML integrates the basic concepts of Booch, OMT and OOSE methods, and most of these basic concepts are the same as those in other object-oriented technologies. Therefore, UML is bound to become a simple and consistent modeling language that users of these and other methods are happy to adopt. Secondly, UML is not only a simple confluence of the above methods, but also widely solicited opinions on the basis of these methods. UML expands the application scope of existing methods. Third, UML is a standard modeling language, not a standard development process. Although the application of UML must be based on the development process of the system, different development processes need to be adopted because of different organizations and different application fields.
As a modeling language, the definition of UML includes two parts: UML semantics and UML representation.
(1) the semantic description of the unified modeling language UML is based on the precise metamodel definition of UML. The metamodel provides a simple, consistent and universal definition for all elements of UML in syntax and semantics, enabling developers to be consistent in semantics and eliminating the impact of person-to-person expressions. In addition, UML supports extended definitions of metamodels.
(2) the unified modeling language UML notation defines the representation of UML symbols, which provides a standard for developers or development tools to use these graphical symbols and text syntax for system modeling. These graphic symbols and words express the application-level model, and semantically it is an example of the UML metamodel.
The important elements of the Unified Modeling language UML can be defined by the following five types of diagrams (a total of nine graphics):
? * classes are use case diagrams that describe the functions of the system from the user's point of view and indicate the operators of each function.
? The second category is static diagrams (Staticdiagram), including class diagrams, object diagrams, and package diagrams. The class diagram describes the static structure of the class in the system. Not only define the classes in the system, represent the relationships between classes, such as association, dependency, aggregation, etc., but also include the internal structure of the class (class properties and operations). The class diagram describes a static relationship that is valid throughout the life cycle of the system.
An object diagram is an instance of a class diagram, using almost the same identity as the class diagram. The difference between them is that the object graph shows multiple object instances of the class, not the actual class. An object diagram is an instance of a class diagram. Because the object has a life cycle, the object graph can only exist for a certain period of time in the system.
A package consists of packages or classes that represent the relationship between packages. The package diagram is used to describe the hierarchical structure of the system.
? The third category is behavior Graph (Behaviordiagram), which describes the dynamic model of the system and the interaction between constituent objects. The state diagram describes all the possible states of the object of the class and the transition conditions of the state when the event occurs. In general, a state diagram is a supplement to a class diagram. In practice, it is not necessary to draw state diagrams for all classes, only for those classes that have multiple states whose behavior is affected by the external environment and changes.
The activity diagram describes the activities to be carried out to meet the requirements of the use case and the constraint relationship between the activities, which is helpful to identify parallel activities.
? The fourth category is the interaction diagram (Interactivediagram), which describes the interaction between objects. The sequence diagram shows the dynamic cooperative relationship between objects, which emphasizes the order of messages sent between objects and shows the interaction between objects at the same time; the cooperation diagram describes the cooperative relationship between objects, and the cooperation diagram is similar to the sequence diagram to show the dynamic cooperative relationship between objects. In addition to displaying the exchange of information, the collaboration graph also shows objects and their relationships. If you emphasize time and sequence, use the sequence diagram; if you emphasize the relationship between superiors and subordinates, select the cooperation diagram. These two diagrams in the unified modeling language UML are called interaction graphs.
? The fifth category is the implementation diagram (Implementationdiagram). The component diagram describes the physical structure of the code components and the dependencies between the components. A part may be a resource code part, a binary part, or an executable part. It contains information about logical classes or implementation classes. Component diagrams help to analyze and understand the degree of interaction between components.
The configuration diagram defines the physical architecture of software and hardware in the system. It can display the actual computers and devices (represented by nodes) and the connections between them, as well as the types of connections and dependencies between components. Within the node, executable components and objects are placed to display the correspondence between the node and the executable software unit.
From the perspective of application, when using object-oriented technology to design the system, the first step is to describe the requirements; secondly, to establish the static model of the system according to the requirements to construct the structure of the system; the third step is to describe the behavior of the system. The models established in steps * * and step 2 are static, including use case diagrams, class diagrams (including packages), object diagrams, component diagrams and configuration diagrams, which are the static modeling mechanism of UML. The model established in the third step can either be executed or represent the timing state or interaction at the time of execution. It includes four graphs: state diagram, activity diagram, sequence diagram and cooperation diagram. It is the dynamic modeling mechanism of the unified modeling language UML. Therefore, the main contents of the unified modeling language UML can also be classified into two categories: static modeling mechanism and dynamic modeling mechanism.
After reading this article, I believe you have a certain understanding of "what are the five types of diagrams in the Unified Modeling language UML". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.