In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to establish the four major UML graphics, with a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Steps for establishing UML graphics
Steps to create a use case diagram in a 1.UML drawing:
1 > find out the activists and external systems outside the system, and determine the boundary and scope of the system.
2 > determine the system behavior that each activist wants.
3 > name these system behaviors as use cases.
4 > decompose some common system behaviors into a number of new use cases for reference by other use cases. Break down the behavior of some changes into extension use cases.
5 > draw up a script for each use case.
6 > draw use case diagrams.
7 > distinguish between the main business flow and the event flow of exceptions. The use case diagram of the event flow that represents the exception can be drawn as a separate subuse case diagram.
8 > refine the use case diagram, solve the problem of repetition and inrush in the use case, simplify the dialogue sequence in the use case, the use case of the high-level system can be decomposed into sub-use cases in several subordinate subsystems.
Steps to establish an object class diagram in a 2.UML drawing:
1 > study and analyze problem areas and determine the requirements of the system.
2 > discover objects and object classes, define their meaning and responsibilities, and determine attributes and operations.
3 > discover static relationships between classes. This paper focuses on analyzing and finding out the general and special relations between object classes, the relationship between parts and the whole, studying the inheritance and polymorphism of classes, and expressing the static relations between classes by association, generalization, aggregation, combination, dependence and so on. although the object class diagram expresses the static structural characteristics of the system, the static analysis and dynamic analysis of the system should be combined to understand the static structural characteristics of the system more accurately.
4 > Design classes and connections. Adjust and refine the relationship between the obtained object classes and classes to solve problems such as naming conflicts, function duplication and so on.
5 > draw the object class diagram and compile the corresponding description. The above approach begins with the extraction of objects and object classes directly from domain analysis, which is the practice of conventional object-oriented system analysis and design. The Rational unified process advocates a use case-driven system analysis and design approach. The actors and use cases are extracted from the analysis of the business domain, and the business model is established. Business model includes business use case model, design model, implementation model and test model.
Steps to create a sequence diagram in a 3.UML drawing:
1 > determine the context of the interaction.
2 > find out the object class roles that participate in the interaction, arrange them horizontally at the top of the sequence diagram, the most important objects are placed on the far left, and the objects that interact closely are as close as possible. Objects created in the interaction should be placed vertically at the point in time at which they were created.
3 > set a vertical downward lifeline for each object.
4 > starting from initializing the interactive information, place the information between the lifelines of the object from top to bottom. Note the difference between synchronous and asynchronous messages in the form of arrows. According to whether the sequence diagram belongs to the description layer or the instance layer, the content of the message label, as well as the necessary constructs and constraints are given.
5 > draw the activation period of the object on the lifeline, as well as the stereotypes and tags for the creation or destruction of the object.
6 > more information about the relationship between messages, determine the loop structure, loop parameters and exit conditions.
Steps to establish a collaborative graph in a 4.UML drawing:
1 > determine the context of the interaction.
2 > find out the object class roles involved in the interaction and place them as the nodes of the graph in the collaboration diagram. The most important objects are placed in the center of the diagram, and the objects that interact directly with him are placed in the vicinity.
3 > set the initial properties of the object.
4 > describe the links between objects. First, the associated connections between objects are given, then other connections are given, and the necessary decorations are given, such as the stereotype "global" and "local".
5 > starting from initializing the interactive message, place the corresponding message on the link and give the sequence number of the message. Note the difference between synchronous and asynchronous messages in the form of arrows. According to whether the sequence diagram belongs to the description layer or the instance layer, the content of the message label, as well as the necessary constructs and constraints are given.
6 > handle some special cases, such as loops, self-invocations, callbacks, multiple objects, etc.
Thank you for reading this article carefully. I hope the article "how to build the four UML graphs" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.