Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Example Analysis of Object actions in UML activity Diagram drawn by EA

Shulou Source: shulou.com Published: 2022-06-01 10:58:03 09月26日 Update

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.

Tags: Actions objects inputs diagrams activities articles selections examples analysis two more goals output good practical clear up and down context content and other Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB NVidia Microsoft Apple Xiaomi