Module 4-2 - Scenario Based Modeling and Use Cases
Module 4-2 - Scenario Based Modeling and Use Cases
1
Use-Cases and Use-Case Scenarios
◼ Use Case is a collection of user scenarios that describe the thread of usage of a
system – how different users use an old software system or how they will would like to use
a new one.
◼ Each single Use Case scenario is described from the point-of-view of an “actor”—a
person (a human being) or device (a non-human being) that interacts with the software in
some way.
▪ A use case (as a class) represents ALL How to create Use-Cases (an algorithm):
actions that are required to enable or
abandon a goal. A use case has multiple 1) Identify all USERS of a new system
“paths” that can be taken by any user at any (human beings, non-human beings, other
one time. SW applications, online databases, etc.)
2) Identify all FUNCTIONES (FEATURES) of
▪ A use case scenario is a single path through a new system
the use case. 3) Identify RELATIONS between USERS and
FUNCTIONS.
Source: http://www.cs.wvu.edu/~tanner/cs230/repslds.pdf 3
“Software Engineering” course:
Domain for most of course (in-classroom and homework)
assignments
4
How to Create Use Case Diagram: Identify Users
(example: MyBradley system at Bradley U. for student acad. services)
5
How to Create Use Case Diagram: Identify Functions
(three different approaches)
2. lists of particular
functions per each
user/actor 6
How to Create Use Case Diagram: Identify Functions:
three approaches
7
Possible
Use Case Diagram
(USD)
8
Possible Use Case Diagram
(as created by one of past students in this course):
Creative Analysis
Try to identify
mistakes on this
Use Case diagram
9
Activity Diagram
10
ent er password
and user ID
Activity Diagram
(for one type of users)
valid passwor ds/ ID invalid passwor ds/ ID
Supplements the use case by select major f unc t ion prompt f or reent ry
selec t spec if ic
Example: c amera - t humbnails
selec t c amera ic on
Step 2: _____
prompt f or
….. anot her v iew
Step N: ____ exit t his f unct ion see anot her cam er a
11
SwimLane Diagrams
12
homeowner c a m e ra i n t e rf a c e
in p u t t r ies
and selec t surveillanc e r em ain
n o in p u t
exit t h is
f u n ct io n
see
an o t h er
cam er a
13
SwimLane Diagram =
a collection of possible activity
diagrams for various users
14
Source: http://tynerblain.com/blog/2007/04/10/what-are-use-case-scenarios/
A Possible SwimLane diagram
related to the Webster system
(as created by one student in this course in the past)
15
Scenario-Based Modeling. Use Case Diagrams.
16