在活动图中包含和排除 [英] include and exclude in Activity diagram

查看:107
本文介绍了在活动图中包含和排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在活动图中显示«include»«extend»
我如何在活动图中显示类型。例如。车辆有两种类型,即自行车和汽车。那么如何在活动图中显示呢?

How to show «include» and «extend» in activity diagram? And how can I show types in activity diagram. E.g. Vehicle is of 2 types i.e Bike and Car. So how can I show this in activity diagram?

推荐答案

(此答案与您是否应该使用«include»或«extend»。)

(This answer is independent of whether or not you should use «include» or «extend».)

用例可以通过多种方式指定。对于某些示例,您可以使用自然语言,表格或活动图。

A use case can be specified any number of ways. For some examples, you can use natural language, tables, or activity diagrams.

您似乎希望将用例指定为活动。在这种情况下,每个用例都由一个活动图指定。用例与活动之间的一对一对应关系也适用于包含用例和扩展用例。

It appears that you would like to specify use cases as activities. In that case, each use case is specified by one activity diagram. The one to one correspondence between a use case and an activity also holds true for included use cases and extending use cases.

在用例中指定包含的方式活动图是作为调用另一个用例活动的动作。就是这么简单。

The way you would specify an inclusion on a use case's activity diagram is as an action that calls the activity of another use case. It's that simple.

扩展名中指定的方法更加复杂。 UML 2.5规范说:

The way you would specify in extension is more complicated. The UML 2.5 specification says:


故意未定义ExtensionPoint的位置为
的特定方式。

The specific manner in which the location of an ExtensionPoint is defined is intentionally unspecified.

扩展用例是组成一个或多个扩展点的用例。每个扩展点可以指定扩展用例中必须满足的条件。当该条件成立时,扩展用例的行为将被激活。这个扩展点不会出现在扩展用例的活动图中。

An extending use case is one that composes one or more extension points. Each extension point may specify a condition that must hold in the extended use case. When that condition holds, the extending use case's behavior will activate. This extension point does not show up in the activity diagram of the extended use case.

关于类型的问题,我们谁都不知道你在问什么请让我知道您是否需要这个其他答案:将活动图链接到要访问的实体

Regarding your question about types, none of us really know what you're asking. Please let me know whether or not this other answer is what you need: Linking activity diagram to entities to be accessed.

这篇关于在活动图中包含和排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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