Download UML Guide

Transcript
Tutorial
7. Change the actor’s name to “User.”
8. Show that the actor and use case are associated with each other by selecting the
association tool and dragging from one to the other.
4.3.2
Subdividing a Use Case
Now that our basic use case has been created, we need to refine it to present a clearer
idea of just what the user must do when operating the refrigerator. We will do this by
breaking down the use case into several use cases of finer granularity with the includes
relationship. An included use case is one that does not stand independently, it must be
part of another, broader use case.
Part of operating a refrigerator includes opening and closing the door, as well as changing its settings. So we need to create three additional use cases and connect them to the
original Operate Fridge use case using dependencies with <<includes>> stereotypes, as
seen in Figure 4.9.
Figure 4.9
Example with “Includes” Dependencies
4. Use Cases
To build upon Figure 4.8 to create the diagram in Figure 4.9:
1. Double-click the use case button in the drawing toolbar to make it sticky.
2. Click the diagram workspace three times to create three new use cases in the
work unit and place depictions of them in the diagram.
3. Click the Select button in the drawing toolbar (the dark arrow on the top) to
“unstick” the use case tool.
4-9