include and exclude in Activity diagram

前端 未结 2 868
心在旅途
心在旅途 2021-01-24 12:21

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 h

2条回答
  •  梦谈多话
    2021-01-24 13:17

    (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.

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

    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.

提交回复
热议问题