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--
This article mainly introduces the UML graphics in the UML state diagram and component diagram how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.
UML state diagrams in UML drawings
The state diagram in the UML diagram represents the different states of a class and the state transition information of that class. One might argue that every class has a state, but not every class should have a state diagram. State diagrams are described only for classes with "interested" states (that is, classes with three or more potential states during system activity).
As shown in figure 5, the symbol set of a state diagram consists of five basic elements: the initial starting point, which is drawn using a solid circle; the transition between states, which is drawn using a line segment with an open arrow; the state, which is drawn using a rounded rectangle; a judgment point, which is drawn using a hollow circle; and one or more termination points, which are drawn using a circle with a solid circle inside. To draw a state diagram, first draw the starting point and a transition line segment that points to the initial state of the class. The states themselves can be drawn anywhere on the diagram, and then simply connect them using state transition lines.
Figure 1: a state diagram showing the various states of a class passing through a functional system
The state diagrams in figure 1 show some of the potential information they can express. For example, you can see that the loan processing system was initially in the LoanApplication state. When the pre-approval (pre-approval) process is completed, depending on the results of the process, either go to the LoanPre-approved state or go to the LoanRejected state. This judgment (which is made during the conversion process) is represented by a judgment point-that is, the hollow circle between the lines. From this state diagram, we can see that without going through the LoanClosing state, it is impossible for the loan to enter the LoaninMaintenance state from the LoanPre-Approved state. Moreover, all loans will end in LoanRejected or LoaninMaintenance status.
UML component diagram in UML drawing
The component diagram provides a physical view of the system. The purpose of component diagrams in UML diagrams is to show the dependencies of software in the system on other software components, such as library functions. Component diagrams can be displayed at a very high level so that only coarse-grained components can be displayed, or they can be displayed at package level 2.
The modeling of component diagram is best described by examples. Figure 2 shows four components: ReportingTool, BillboardService, Servlet2.2API, and JDBCAPI. The arrowhead segment from the ReportingTool component to the BillboardService, Servlet2.2API, and JDBCAPI components indicates that ReportingTool depends on those three components.
Figure 2: the component diagram shows the dependency deployment diagram of the various software components in the system
Thank you for reading this article carefully. I hope the article "how to use UML state diagrams and assembly diagrams in UML graphics" shared by the editor will be helpful to you. At the same time, I also hope 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.