Unit 1 Mod 1 Structuring The Use Case Model
Unit 1 Mod 1 Structuring The Use Case Model
1
Objectives
3
Manage Change: Activities and Artifacts
4
Structure the Use-Case Model
5
Relationships Between Use Cases
Include
«include»
Extend
Generalization
«extend»
Handout WP5:
Structuring the Use-Case
Model
6
What Is an Include Relationship?
AT
A relationship from a base use case to an
inclusion use case.
The behavior defined in the inclusion use case
is explicitly included into the base use case.
Inclusion
«include»
Base
7
Include Relationship: RU e-st Example
8
Execution of an Include Relationship
Use-Case
Instance
Included
Use Case
9
Why Use an Include Relationship?
10
What Is an Extend Relationship?
c ii
«extend»
Extension
11
Extend Relationship: RU e-st Example
Handout
RUCS4:
Structured Use-
Case Reports
Trading Customer
Get Quote
«extend» «extend»
12
Extend Relationship: RU e-st Example (cont.)
Get Quote Use Case Get News Use Case
Basic Flow: This use case extends the Get Quote
1. Include “Identify Customer” Use Case, at extension point
to verify customer’s identity. “Optional Services.”
2. Display options. Basic Flow:
3. Customer selects “Get
1. If Customer selects “Get News,” the
Quote.”
system asks customer for time
4. Customer gets quote. period and number of news items.
5. Customer gets other quotes.
2. Customer enters time period and
6. Customer logs off.
number of items. The system
A1. Quote System unavailable sends stock trading symbol to
… News System, receives reply, and
displays the news to the customer.
Extension Points: 3. The Get Quote Use Case continues.
The “Optional Services”
extension point occurs at Step 3 A1: News System Unavailable
in the Basic Flow and Step A1.7 A2: No News About This Stock
in Quote System Unavailable …
alternative flow.
13
Execution of an Extend
Use-Case Base
Instance Use Case
Extension
Point
Extension
Use Case
14
Why Use an Extend Relationship?
15
Concrete Versus Abstract Use Cases
A use case is Abstract use cases (A & D):
either concrete or A • Do not have to be complete.
abstract.
• Exist only for other use cases.
«include» • Are never instantiated on their
own.
Hint:
B C
Cover up all
abstract use
cases and you
«extend» should still be
Concrete use cases (B & C): able to
• Have to be complete and D understand the
meaningful. main purpose of
• Can be instantiated on the system.
their own.
16
Why Wouldn’t You Structure The Model?
17
What Is Actor Generalization?
Parent
Child 1 Child 2
18
Actor Generalization: Hospital Example
Nurse Medical
Worker Read Chart
Aide
19
Why Use Actor Generalization?
S
S
Simplify associations
between many actors
Parent and a use case.
Show that an instance of
a child can perform all
behavior described for
the parent.
Child 1 Child 2
Represent different
security levels.
20
Abstract Versus Concrete Actors
21
Use-Case-Modeling Guidelines
Handout
RUCS11: Use-
Case Modeling
Guidelines
22
Discussion: Structuring the Use-Case Model
23
Review: Relationships in the Use-Case Model
to
from
generalization communicates
«include»
communicates «extend»
generalization
24
Checkpoints for Use Cases
25
Review: Structure the Use-Case Model
26
Summary (1 of 2)
27
Summary (2 of 2)
28