0% found this document useful (0 votes)
46 views

Module 4-2 - Scenario Based Modeling and Use Cases

The document discusses use cases and use case scenarios. It defines use cases and scenarios, lists questions scenarios should answer, and provides examples of use case diagrams and how to create them by identifying users, functions, and relationships.

Uploaded by

Akende Muma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Module 4-2 - Scenario Based Modeling and Use Cases

The document discusses use cases and use case scenarios. It defines use cases and scenarios, lists questions scenarios should answer, and provides examples of use case diagrams and how to create them by identifying users, functions, and relationships.

Uploaded by

Akende Muma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Analysis Model:

Scenario-Based Modeling and


Use Case Diagrams

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.

◼ Each single scenario answers multiple possible questions:


◼ Who is the primary actor (user), the secondary actor (s)?
◼ What are the actor’s goals?
◼ What preconditions should exist before the story begins?
◼ What main tasks or functions are performed by the actor?
◼ What extensions might be considered as the story is described?
◼ What variations in the actor’s interaction are possible?
◼ What system information will the actor acquire, produce, or change?
◼ Will the actor have to inform the system about changes in the external environment?
◼ What information does the actor desire from the system?
◼ Does the actor wish to be informed about unexpected changes?
2
Use Case Diagram in UML Diagram format

It is easy to mix up the definitions of use case


and use case scenario.

▪ 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

AFTER March 27, 2023

◼ MyBradley current Bradley U. system for course registration

◼ MyBradley++ new (updated) system that contains proposed-by-students


modifications/improvements to be implemented

BEFORE March 27, 2023

◼ Webster Bradley Online Course Registration System

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)

1. A list of all possible functions

2. lists of particular
functions per each
user/actor 6
How to Create Use Case Diagram: Identify Functions:
three approaches

3. fragments of Use Case


diagrams with particular
functions per each
user/actor

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

+) What is good in this


example?
-) What is not so good in
this example?

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

providing a graphical ot her f unct ions


m ay also be
select ed
representation of DETAILED input t r ies r em ain
select surv eillanc e
ALGORITHM of data flow (step- no input
t r ies r em ain

by-step) of interaction within a


specific scenario
t hum bnail views select a specif ic cam er a

selec t spec if ic
Example: c amera - t humbnails
selec t c amera ic on

Describe ADD a COURSE


function:
v iew c amera out put
Step 1: _____ in labelled window

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

Swimlane Diagrams ent er pas sword


and user ID

Allows SW engineer to valid p asswo r d s/ ID


in valid

represent the flow of activities s elec t m ajor f unct ion


p asswo r d s/ ID

described by Activity o t h er f u n ct io n s prom pt f or reent ry


Diagrams m ay also b e
select ed

in p u t t r ies
and selec t surveillanc e r em ain

n o in p u t

at the same time indicate t r ies r em ain

which actor (if there are


multiple actors involved in a t h u m b n ail views select a sp ecif ic cam er a

specific use-case) or analysis


class has responsibility for select s pecif ic
c am era - t hum bnails
s elect c am era icon

the action described by an


activity rectangle
generat e video
out put

v iew c am era out put prom pt f or


in labelled window anot her v iew

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

(as an example a single path –


given in yellow color)

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.

Self-learning and Practice


1. Create the Use Case Diagram for
the current version of MyBradley
system (for academic activities only)

2. Create Activity Diagram for Student


actor in MyBradley system (for
academic activities only)

3. Create SwimLane Diagram with


“lanes” for Students + Advisers +
Acad. Admins + Databases actors in
MyBradley system (for academic
activities only)

16

You might also like