UseCase Diagrams

UseCase diagrams represent the behavior of the system in response to user requirement.

image

Creating UseCase Diagrams

UseCase diagrams can be added by the following procedure:

  • Click [UseCase Diagram] from [Diagram] on the Main Menu.

  • Use the context menu from [Structure] in [Project View].


Diagram Elements in UseCase Diagrams

../../../_images/usecase_dgm_toolbar.png
Description of each icon

Type

Icon

Description

Select

select_icon

The basic operations of the Diagram Editor can be executed in this mode.

Actor

actor_icon

Add an Actor.

UseCase

usecase_icon

Add a UseCase.

Package

package_icon

Add a Package.

Nest

nest_icon

Add a Nest.

Association (Navigable)

association_icon

Add an Association (Navigable).

Association (Directed)

asso_with_nav_icon

Add an Association (Directed). Select from the pull-down of the Association (Navigable).

Association (Non-navigable)

asso_non_to_non_icon

Add an Association (Non-navigable). Select from the pull-down of the Association (navigable).

Aggregation (Navigable)

aggregation_icon

Add an Aggregation (navigable). Select from the pull-down of the Association (navigable).

Aggregation (Directed)

aggregation_to_navi_icon

Add an Aggregation (Directed). Select from the pull-down of the Association (navigable).

Composition (Navigable)

composite_icon

Add a Composition (Navigable). Select from the pull-down of the Association (navigable).

Composition (Directed)

composite_to_navi_icon

Add a Composition (Directed). Select from the pull-down of the Association (navigable).

Extend

extend_icon

Add an Extend.

Include

include_icon

Add an Include.

Generalization

general_icon

Add a Generalization.

Dependency

dependency_icon

Add a Dependency.

Refer to Common Diagram Elements for information on other items.


Show Hidden Relationships

All the Diagram Elements related to the Diagram Element on the diagram are displayed. Right-click on the diagram to open the context menu and select [Show Hidden Relationships].

image

Actor

Creating an Actor

Actors can be created by the following procedure:

  • Select [Actor] actor_icon in the Tool Bar and click on the diagram.

  • Use the context menu of the structure tree in [Project View].

act1

act2

Editing the Actor

Editing the Name

Name can be edited by the following procedure:

  • Double-click the name of the Diagram Element on the Diagram Editor and edit the name.

  • Edit from the [Base] tab in the Property View.

act3

act4

Adding a Stereotype

Stereotype can be added by the following procedure:

  • Select [Add Stereotype] from the context menu.

  • Add a stereotype from the [Stereotype] tab of the Property View.


UseCase

Creating a UseCase

UseCase can be created by the following procedure:

  • Double-click on the UseCase diagram.

  • Select [UseCase] usecase_icon in the Tool Bar and click on the diagram.

  • Use the context menu of the structure tree in [Project View].

image

Editing the UseCase

Editing the Name

Name can be edited by the following procedure:

  • Double-click the name of the diagram element on the Diagram Editor and edit the name.

  • Edit from the [Base] tab in the Property View.

image

Create Diagram

Right-click on the UseCase in the diagram and select [Create Diagram]. And select a Diagram Type.

image

A diagram is created under the specified UseCase.

image

Add an Extension Point

Extension Point can be added by the following procedure:

  • Select [Add Extension Point] from the context menu.

  • Add from the [Extension Point] tab of the Property View.

image

Adding a Stereotype

Stereotype can be added by the following procedure:

  • Select [Add Stereotype] from the context menu.

  • Add a stereotype from the [Stereotype] tab of the Property View.

UseCase Name Position

The UseCase name can be displayed at a different position.

uc1

uc2

Click [Name In Oval] in the context menu of UseCase to change the display position.

image

Include and Extend

Extend

Extend can be created by the following procedure:

  • Select [Extend] extend_icon in the Tool Bar.

  • Select [Extend] using the Draw Suggest Feature.

image

Include

Include can be created by the following procedure:

  • Select [Add Included UseCase] from the context menu.

  • Select [Include] include_icon in the Tool Bar.

  • Select [Include] using the Draw Suggest Feature.

image

Note

Extend and Include are not a line that represents the Stereotype Dependencies. Even if you draw a line representing the Dependency and write “extend” or “include” in the Stereotype of the Dependency, Astah does not interpret them as Extend and Include.

Show Included UseCase

  1. Select [Show Included UseCase] from the context menu.

image
  1. All included UseCases are displayed.

image

Package

Refer to Block Definition Diagram Package for details.


Nest

Creating a Nest

Select [Nest] nest_icon in the Tool Bar.

image

Association

Creating an Association

Association can be created by the following procedure:

  • Select from [Association (Navigable)] association_icon, [Association (Directed)] asso_with_nav_icon, or [ Association (Non-navigable)] in the Tool Bar.

  • Select from [Association (Navigable)], [Association (Directed)], or [ Association (Non-navigable)] in the Draw Suggest.

a1

a2

a3

Aggregation can be created by the following procedure:

  • Select from [Aggregation (Navigable)] aggregation_icon or [Aggregation (Directed)] aggregation_to_navi_icon in the Tool Bar.

  • Select from [Aggregation (Navigable)] or [Aggregation (Directed)] in the Draw Suggest.

g1

g2

Composition can be created by the following procedure:

  • Select from [Composition (Navigable)] composite_icon or [Composition (Directed)] composite_to_navi_icon in the Tool Bar.

  • Select from [Composition (Navigable)] or [Composition (Directed)] in the Draw Suggest.

c1

c2

Editing the Association

Name Setting

Association name can be created by the following procedure:

  • Select [Name Setting] from the context menu.

  • Edit from the [Base] tab in the Property View.

image

Association Name Direction

Select [Association Name Direction] from the context menu and click [Show] to switch the visibility of triangle. Click [Reverse Direction] to reverse the direction of triangle.

  • The Association Name must be set to show Association Name Direction.

image

Adding a Constraint

Constraint can be added by the following procedure:

  • Select [Add Constraint] from the context menu.

The Constraint type to be added depends on the clicking position.

  • Click near the center of the Association to add the Association Constraint.

  • Click near the start point of the Association to add the AssociationEnd A.

  • Click near the end point of the Association to add AssociationEnd B.

image
  • Add from the [Constraint A], [Constraint], or [Constraint B] tab in the Property View.

Editing the Navigation

Navigation can be edited by the following procedure:

The Navigation of the target closer to the context menu is set.

image
  • Edit from the [AssociationEnd A] and [AssociationEnd B] tab in the Property View.

Editing the Aggregation

Aggregation can be edited by the following procedure:

  • Select either of [Aggregation], [Composition], or [None] from [Aggregation] in the context menu.

The Aggregation of the target closer to the context menu is set.

image
  • Edit from the [AssociationEnd A] and [AssociationEnd B] tab in the Property View.

Editing the Multiplicity

Multiplicity can be edited by the following procedure:

  • Select either of [1], [0..1], [0..*], [*], [1..*], or [Unspecified] from [Multiplicity] in the context menu.

The Multiplicity of the target closer to the context menu is set.

image
  • Select either of [1], [0..1], [0..*], [*], [1..*], or [Unspecified] from the Draw Suggest.

image
  • Edit from the [AssociationEnd A] and [AssociationEnd B] tab in the Property View.

Adding a Stereotype

Stereotype can be added by the following procedure:

  • Select [Add Stereotype] from the context menu.

  • Add a stereotype from the [Stereotype] tab of the Property View.


Generalization

Creating a Generalization

Generalization can be created by the following procedure:

  • Select [Generalization] general_icon in the Tool Bar.

  • Select [Generalization] in the Draw Suggest.

image

Editing the Generalization

Adding a Constraint

Constraint can be added by the following procedure:

  • Select [Add Constraint] from the context menu.

  • Edit from the [Constraint] tab of the Property View.

image

Adding a Stereotype

Stereotype can be added by the following procedure:

  • Select [Add Stereotype] from the context menu.

  • Add a stereotype from the [Stereotype] tab of the Property View.


Dependency

Creating a Dependency

Dependency can be created by the following procedure:

  • Select [Dependency] dependency_icon in the Tool Bar.

  • Select [Generalization] in the Draw Suggest.

image

Editing the Dependency

Adding a Constraint

Constraint can be added by the following procedure:

  • Select [Add Constraint] from the context menu.

  • Edit from the [Constraint] tab of the Property View.

image

Adding a Stereotype

Stereotype can be added by the following procedure:

  • Select [Add Stereotype] from the context menu.

  • Add a stereotype from the [Stereotype] tab of the Property View.