In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what object-oriented means when EA draws UML state diagrams. I believe most people don't know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.
object-oriented
There are two perspectives when considering the state machine of a button: the view of the signal system and the view of the button device.
Horns.
If the model is modeled according to the requirements of the signal system, the identified state is the result of road 1 passing and road 1 stopping. Due to the difference between the stop button and the point that pedestrians pay attention to through the button, the identified state is different and cannot be shared.
If the system requirements are considered and modeled according to the point of view of the button device, the identified state is the invalid state of the button, the valid state of the button, the valid state of the request, etc., then the processing of the stop button and the pedestrian button can be common.
Use the user perspective when collecting requirements and the functional provider perspective when modeling. This is also a kind of object-oriented. Although this explanation is only an expanded explanation by the author, it is absolutely beneficial and harmless to consider the problem when we are analyzing the system.
Button device state machine
Combined with the requirements of the stop button and the pedestrian request button, according to the object-oriented (button device) point of view, the modeling is as follows:
Disable status: the device does not accept user button operations. After receiving the DeviceEnable event, migrate to the Enable state; if the ShutDown event is received, migrate to the ExitPoint via the Junction pseudo-state.
Enable status: after detecting that the user button is pressed, migrate to the CmdReady state; after receiving the DeviceDisable event, migrate to the Disable state; if the ShutDown event is received, migrate to the ExitPoint via the Junction pseudo state.
CmdReady state: after receiving the HandlerReady event, the Command signal is sent and then migrates to the Disable state; after receiving the DeviceDisable event, it transitions to the Disable state; if the ShutDown event is received, it migrates to the ExitPoint via the Junction pseudo-state.
About connection points (Junction)
Join points-this type of pseudo-state is used to connect multiple transitions between states into a compound path. For example, the merge pseudo state can be used to merge multiple incoming migrations into one leaving migration, showing subsequent path sharing in this way. It can also be used to divide an entry migration into multiple departure migrations, which are selected through different guardianship constraints.
-- UML2.5 14.2.3.7 Pseudostate and PseudostateKind
(pseudo-state and pseudo-state types)
The above is all the content of the article "what is the meaning of object orientation in EA drawing UML state diagram". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 266
*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.