Example Analysis of Object actions in UML activity Diagram drawn by EA
This article will explain in detail the example analysis of Object actions in the UML activity diagram drawn by EA. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Description
CreateObjectAction
The create object action (CreateObjectAction) creates an object based on the statically specified category and places the object on the output pin at run time. This action needs to specify a category.
DestroyObjectAction
The destroy object action (DestroyObjectAction) is an action that destroys an object. It has a unique input pin that is used to pass the destruction target.
TestIdentityAction
The test identity action (CreateObjectAction) is used to confirm whether two input values point to the same object. This action has two input pins for input confirmation targets and another output pin for placing confirmation results.
Explanation
Today's actions are easy to understand, but the only difficulty is the method of specifying the category for CreateObjectAction in EA, as shown below:
Select the CreateObject action in the activity diagram
Open the context menu
Select [Advanced]-[Set Classfier]
Select or create a category in the [Select Classfier] dialog box
As for TestIdentityAction, it is equivalent to pointer comparison operation in C++, but a separate action is defined, which should have the advantage of expressing the designer's intention more clearly. TestIdentityAction is often used in operations such as object lookup.
This is the end of the article on "sample Analysis of Object actions in EA drawing UML activity Diagram". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.