In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you EA UML diagram collaboration example analysis, I believe most people do not know how, so share this article for your reference, I hope you read this article after a lot of harvest, let us go to understand it!
application example
Graphic editing software (hereinafter referred to as editing software) described first in natural language:
1. The user visually changes from on-screen to the current state of the editing object.
2. User operates with mouse (key press, key release, drag)
3. The system architecture accepts user actions, converts them into events and distributes them to editing software.
4. After the editing software accepts the event, it processes it according to the current state.
5. Notification schema updates presentation content
6. Update processing of system architecture call editing software.
7. Editing software calls system architecture to represent editing objects on screen
8. User sees representation on screen
9. Go back to step 1 and continue until the software exits.
In UML, the above description can be expressed in many ways, this article takes Qt environment development as an example, using object diagrams to model the collaboration of editing software.
Description of Collaboration Diagram
From the above description, the following terms can be abstracted: user, screen, operation/time, system architecture, editing software, editing object.
user
The user is the external part of our system, but sometimes the initiator of all actions and the confirmer of editing results, need not be implemented but modeled. We use the following icon to represent it.
screen
The screen is responsible for presenting the editing results, strictly speaking including hardware, operating system and Qt presentation architecture. For editing software modeling, it also belongs to the part that needs modeling and does not need to be implemented. It can be seen as a unified Screen and represented by the icon below.
system architecture
The system architecture is responsible for first accepting user actions and forwarding them to the processing module of the editing software. System architecture includes hardware that accepts user operations, operating system, and Qt architecture that is responsible for forwarding user operations events. The architecture is also responsible for editing the update requests issued by the software and for invoking the presentation functions of the software at the appropriate time. Also users, screens similar to this also belong to the part that needs modeling and does not need to be implemented, we use the following graphic representation.
Actions/Events
Actions/events can be viewed as parameters for collaboration and therefore do not have corresponding graphs.
editing software
In the Qt architecture, a subclass of QWidget can handle user actions and presentation events. It is currently called a view and no specified type can be specified in the future.
edit data
Editing data is the work of editing software.
Of course, we also know that a complete software in addition to editing functions and save files, open files and so on, here is an example of save function, others can play their own.
summary
1. Use collaboration diagrams to
Clarify the overall system composition
Explicit interaction/collaboration
Clarify the boundary between the realized part and the existing part
2. For users, representations, processes, data, etc. whose systems need modeling but do not need implementation, consider using:
Actor
Boudary
Control
Entity
The above is "EA drawing UML diagram collaboration example analysis" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to 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: 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
Record the CDH5.13.0 installed in VM
© 2024 shulou.com SLNews company. All rights reserved.