In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces EA drawing UML diagram how to add classes and reference classes, 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 take you to understand.
Add CLA
To add a new class, drag the Class icon from the software's toolbar to the class diagram as shown below.
The class properties dialog box automatically appears when you release the mouse.
After entering the class name Person in the [General] classification page and determining that C++ is selected in Language, press the [OK] button. The picture will look like this.
Choosing C++ here has two functions, one is to determine the language in which the code is generated, and the other is that some options (such as private inheritance) will change with this setting. In fact, you don't have to ask why, just do the right thing.
In addition to the yellow Person class box on the left, a Person node appears on the Model tree on the upper right. Strictly speaking, this Person node is the class we added to the model. The Person in the class diagram on the left is just a link.
Delete Link
To illustrate this, we can delete the Person class from the class diagram, and the screen will look like the following.
Although the Person class in the class diagram is missing, the Person on the Model tree is still there.
Paste link
When we drag the Person node into the ClassView, the [Paste Person] dialog box appears first.
The current option for the [Drop as] project is Link, which adds a link to the Person class on the screen.
Now it is back to the state it was before deletion, and nothing has been lost. As an additional note, with the Person class in ClassView, if you continue with the above operation, EA will reject it.
Paste an instance
This is not over, we continue to drag the Person node to ClassView, but this time we choose In
Stance (Object) adds an instance of the Person class, and the screen looks like this.
Pay attention to both the changes in ClassView and the changes in the Model tree. We can continue to increase the number of instances, add one instance, and the number of Model nodes will also increase. They have the same name at present, but they are different instances, and in this case, there are different people.
We can also modify the instance name through the properties dialog box, which is omitted here due to space and traffic.
Paste subclass
We are not done here, we continue to drag the Person node to ClassView, but this time we choose Child (Generalization) to add a derivative of the Person class, and the screen will look like this.
As you may have noticed, the software automatically adds a generalization cable for us. Subclasses can also be added repeatedly, each time adding another subclass, although the current name is the same, but all are different subclasses, which can be seen in the Model tree.
Delete a class / instance
Select the corresponding node on the Model tree, open the context menu, and select [Delete'? It's fine, it's really deleted this time, so be careful!
Thank you for reading this article carefully. I hope the article "how to add classes and citation classes in EA drawing UML diagram" shared by the editor will be helpful to everyone. At the same time, I also hope you can 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.