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--
In this issue, the editor will bring you about the UML sequence diagram and collaboration diagram in the foundation of UML. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
UML sequence diagrams represent interactions as a two-dimensional diagram. Longitudinally is the timeline, and time extends downward along the vertical line. Collaborative image sequence diagrams also convey the same information, but they don't care about when the message is delivered, only about the role of the object.
UML sequence diagram
UML sequence diagrams represent interactions as a two-dimensional diagram. Longitudinally is the timeline, and time extends downward along the vertical line. The horizontal axis represents the meta-roles of individual objects in collaboration. Meta-roles are represented by lifelines. When the object exists, the character is represented by a dotted line, and when the process of the object is active, the lifeline is a double line.
Class diagrams and object diagrams are views of static models. The interaction diagram is dynamic. They describe the interaction between objects.
The UML sequence diagram represents the interaction as a two-dimensional diagram. Longitudinally is the timeline, and time extends downward along the vertical line. The horizontal axis represents the meta-roles of individual objects in collaboration. Meta-roles are represented by lifelines. When the object exists, the character is represented by a dotted line, and when the process of the object is active, the lifeline is a double line.
Messages are represented by arrows from one object's lifeline to another. The arrows are arranged from top to bottom in the diagram in chronological order.
UML collaboration Diagram
After introducing the UML sequence diagram, let's take a look at the UML collaboration diagram, which is also a diagram of interaction. They convey the same information as sequence diagrams, but they don't care about when the message is delivered, only about the role of the object. In the sequence diagram, the role of the object is placed on it and the message is the connection line.
The object role rectangle is marked with a class or object name (or both). The class name is preceded by a colon (:).
Each message in the collaboration diagram has a serial number. The number of the top-level message is 1. Messages of the same level (that is, messages in the same call) have the same numeric prefix, and then add a suffix 1Magne2 and so on according to the order in which they appear.
These are the UML sequence diagrams and collaboration diagrams shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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: 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.