In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the difference between UML class diagram and object diagram". The editor shows you the operation process through an actual case. The operation method is simple and fast, and it is practical. I hope this article "what is the difference between UML class diagram and object diagram" can help you solve the problem.
UML object graph
I. Overview of UML object Graph
Object graph (ObjectDiagram) describes the state of each object participating in the interaction at a certain time in the process of interaction. An object diagram can be seen as an instance of a class diagram at some point. In UML, object diagrams use the same symbols and relationships as class diagrams, because objects are instances of classes. The following figure shows the model of the object graph. The node can be an object or a class, and the connection represents the relationship between the objects.
2. The difference between UML class diagram and UML object diagram.
Modeling Technology of UML object Graph
First, modeling the object structure
When modeling the design view of a system, a set of class diagrams can be used to fully describe the abstract semantics and the relationship between them. However, the object structure of the system can not be completely described by using object graph. For an individual class, there may be multiple instances, and for a set of classes that are related to each other, there may be quite a number of configurations available between objects. Therefore, when using an object graph, you can only display a set of specific or prototype objects of interest in a certain sense. This is the modeling of the object structure, that is, an object graph shows a set of objects that are related to each other at a certain time.
To model the object structure, follow the following strategies:
(1) identify the modeling mechanism to be used. This mechanism describes the functions and behaviors of some of the systems being modeled, which are generated by the interaction of classes, interfaces, and other elements.
(2) for various mechanisms, identify the classes, interfaces and other elements involved in collaboration, as well as the relationship between these things.
(3) consider the script that runs through this mechanism. Freeze the script at a certain point and report on each object involved in the mechanism.
(4) display the status and attribute values of each object as needed to understand the script.
(5) the chain between objects is displayed to describe the instance of the association between objects.
II. Forward engineering and reverse engineering
1. Forward engineering
The forward engineering of UML object graph engineering is feasible in theory, but it is limited in practice.
2. Reverse engineering
It is very difficult to reverse engineer UML object graph. When debugging a system, it always depends on developers or tools.
This is the end of the content about "what is the difference between UML class diagram and object diagram". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.