| I l @ ve RuBoard |
Use Case Relationships
An association relationship may exist between an actor and a use case. This type of association is often referred to as a
communicate association
since it represents communication between an actor and a use case. An association may be navigable in both directions (actor to use case and use case to actor) or it may be navigable in only one direction (actor to use case or use case to actor). The navigation direction of an association represents who is initiating the communication (i.e., the actor is initiating the communication with the use case, the use case is initiating the communication with the actor). An association is represented as a line connecting the
There are two types of relationships that may exist between use cases:
include
and
extend
. Multiple use cases may share pieces of the same functionality. This functionality is placed in a separate use case rather than documenting it in every use case that needs it.
Include
relationships are created between the new use case and any other use case that "uses" its functionality. For example, each use case in the ESU Course Registration System starts with the verification of the user. This functionality can be captured in a
An extend relationship is used to show
For example, a use case that
The UML has a concept called a
stereotype
, which provides the capability of extending the basic modeling elements to create new elements. Thus, the concept of a stereotype allows the UML to have a minimal set of symbols that may be extended where needed to provide the communication artifacts that have meaning for the system under development. Stereotype
Use case relationships are shown in Figure 3-9. Figure 3-9. Use Case Relationships
|
| I l @ ve RuBoard |
| I l @ ve RuBoard |
Use Case DiagramsA use case diagram is a graphical view of some or all of the actors, use cases, and their interactions identified for a system. Each system typically has a Main Use Case diagram, which is a picture of the system boundary (actors) and the major functionality provided by the system (use cases). Other use case diagrams may be created as needed. Some examples follow:
CREATING THE MAIN USE CASE DIAGRAM IN RATIONAL ROSE
Note Actors and use cases may also be created directly on a use case diagram by using the toolbar. CREATING COMMUNICATE ASSOCIATIONS IN RATIONAL ROSE
To add the communicate stereotype (optional):
CREATING INCLUDE RELATIONSHIPS IN RATIONAL ROSE
CREATING EXTEND RELATIONSHIPS IN RATIONAL ROSE
The Main use case diagram for the ESU Course Registration System is shown in Figure 3-10. CREATING ADDITIONAL USE CASE DIAGRAMS IN RATIONAL ROSE
Figure 3-10. Main Use Case Diagram
An additional use case diagram is shown in Figure 3-11. Figure 3-11. An Additional Use Case Diagram
|
| I l @ ve RuBoard |