Professional Documents
Culture Documents
LECTURE 4 & 5
USE CASE DIAGRAM & USE CASE
SPECIFICATIONS
Learning Objectives
2
1
3/1/2021
2
3/1/2021
System
As a part of the use-case modeling, the boundaries of
the system are developed.
System in the use-case diagram is a box with the
name appearing on the top.
Define the scope of the system that you are going to
design
Actors
An actor is something or someone that interacts with
the system.
Actor communicates with the system by sending and
receiving messages.
An actor provides the stimulus to activate an Use-case.
Message sent by an actor may result in more
messages to actors and to Use-cases.
Actors can be ranked: primary and secondary; passive
and active.
Actor is a role not an individual instance.
3
3/1/2021
Finding Actors
The actors of a system can be identified by answering
a number of questions:
Who will use the functionality of the system?
Who will maintain the system?
Use cases
A Use case in UML is defined as a set of sequences of
actions a system performs that yield an observable result of
value to a particular actor.
Actions can involve communicating with number of actors
as well as performing calculations and work inside the
system.
A Use case
is always initiated by an actor.
provides a value to an actor.
must always be connected to at least one actor.
must be a complete description.
4
3/1/2021
5
3/1/2021
Relationships
Include
The base use case explicitly incorporates the behavior of
another use case at a location specified in the base.
The included use case never stands alone. It only occurs as
a part of some larger base that includes it.
Extend
The base use case implicitly incorporates the behavior of
another use case at certain points called extension points.
Generalization
Represents is-a relationship between use cases
Is also used between actors
Represented with a arrow with a triangular head
Login
Order Online
Print
Receipt
Customer
6
3/1/2021
7
3/1/2021
8
3/1/2021
9
3/1/2021
19
Exercise
Draw a use case diagram to drop a subject in
student registration system, and write a use case
specification.
10
3/1/2021
Name:
Actor(s):
Description:
Goal:
Preconditions:
Assumptions:
Frequency:
Normal Flow:
Alternate Flow:
Exceptional Flow:
Post conditions:
Included Use Cases:
Extended Use Cases:
Notes:
11