如何在UML状态机图中将类操作调用设置为过渡? (Sparx EA) [英] How to set a class operation call as transition in an UML state machine diagram? (Sparx EA)

查看:183
本文介绍了如何在UML状态机图中将类操作调用设置为过渡? (Sparx EA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Sparx Enterprise Architect(我有版本9)的UML图中重用类的操作调用作为转换?如果是,我该怎么做?

Is it possible to reuse an operation call of a class as transition in an UML diagram of Sparx Enterprise Architect (I've got version 9)? If yes, how do I do that?

可以将其用作活动图中的动作和对象图中的消息,但是我无法弄清楚退出状态机。我希望为软件开发人员提供更多的集成...

It's possible to use it as action in an activity diagram and as message in an object diagram, but I can't figure it out for the state machine. I wish there was more integration for software developers...

我希望我可以将图中的状态设置为类实例的特殊状态(类实例= =对象)。

Furthermore, I wish I could set a state in the diagram as special state of a class instance (class instance == object).

推荐答案


是否可以重用类的操作调用作为过渡UML图...?

Is it possible to reuse an operation call of a class as transition in an UML diagram ...?

是。在状态机图中:
打开过渡属性,启用效果就是行为,然后
从浏览器中选择操作。

Yes. In the state machine diagram: Open the transition properties, enable "Effect is Behavior" and select the operation from the browser.


可以将其用作活动图中的动作...

It's possible to use it as action in an activity diagram ...

是。在活动图中添加一个呼叫操作 操作。
转到动作属性->调用,然后从
行为:菜单中选择操作。

Yes. Add a 'Call Operation' action to the activity diagram. Goto, "action properties" -> "Call" and select the operation from the "Behavior:" menu.


...以及对象图中的消息...

... and as message in an object diagram ...

是。在对象图上的对象之间绘制一个 link
右键单击该链接,然后选择 Add message from ...(其中 ...是所需的方向)。双击该消息,然后从
消息:下拉列表中选择操作。

Yes. Draw a link between the objects on the object diagram, right-click the link and select "Add message from ... " (where "..." is the desired direction). Double-click the message and select the operation from the "Message:" drop-down list.

这篇关于如何在UML状态机图中将类操作调用设置为过渡? (Sparx EA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆