8
8
•Use case diagrams are used to depict the context of the system to be built and the
•They show what the outside world wants the system to do.
• Use cases are represented with a labeled oval shape.
• Stick figures represent actors in the process, and the actor's participation in the system is modeled
with a line between the actor and use case.
• To depict the system boundary, draw a box around the use case itself.
Two relationships used primarily for organizing use case models are
both powerful
• «include» relationship
• «extend» relationship
• "The include relationship is intended for reusing behavior modeled by another use case, whereas the
extend relationship is intended for adding parts to existing use cases as well as for
modeling optional system services“
• Include = reuse of functionality (i.e. the included functionality is used or could be used elsewhere in the
system). Include therefore denotes a dependency on another use case.
• Extends = adding (not reusing) functionality and also any optional functionality. Extends therefore can
denote one of two things:
1. adding new features/capabilities to a use case (optional or not)
2. any optional use cases (existing or not).
• Extend is used when a use case adds steps to another first-class use case.
• For example, imagine "Withdraw Cash" is a use case of an Automated Teller Machine (ATM).
• "Assess Fee" would extend Withdraw Cash and describe the conditional "extension point" that is
instantiated when the ATM user doesn't bank at the ATM's owning institution.
• Notice that the basic "Withdraw Cash" use case stands on its own, without the extension.