02. UseCase_2
02. UseCase_2
Use case diagrams are used to visualize, specify, construct, and document
the (intended) behavior of the system, during requirements capture and
analysis.
Provide a way for developers, domain experts, and end-users to
Communicate.
Serve as basis for testing.
Use case diagrams contain use cases, actors, and their relationships.
Chapter 2: Use Case Diagram
S.3
ACTOR
An actor represents a set of roles that users of use case play when
interacting
with these use cases.
Actors can be human or automated systems.
Actors are entities
which require help from the system to perform their task, or
are needed to execute the system’s functions.
Actors are not part of the system.
A system can be an Actor of other systems
Actor
Chapter 2: Use Case Diagram
S.5
updating
grades
faculty
Chapter 2: Use Case Diagram
S.6
University Management
System
Login
Registration of
Course
Faculty Student
Upload
Grade
Chapter 2: Use Case Diagram
S.7
IncludeRELATIONSHIPS BETWEEN
- use cases that are included USE
as parts of otherCASES
use. Enable to factor
common behavior
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. The original use case is not complete without the included
one
<<include>>
base included
Chapter 2: Use Case Diagram
S.8
updating
grades
<<include>>
verifying
Id and password
<<include>>
registration
Chapter 2: Use Case Diagram
S.9
Vacatio
n
<<extend>>
base extending
Chapter 2: Use Case Diagram S.
10
Student
registration
under-graduate graduate
registration registration
Chapter 2: Use Case Diagram S.
11
Pre-Condition:
– The ATM must be in a state ready to accept transactions
– The ATM must have at least some cash on hand that it can dispense
– The ATM must have enough paper to print a receipt for at least one
transaction
Post Condition:
– The current amount of cash in the user account is the amount before the
withdraw minus the withdraw amount
– A receipt was printed on the withdraw amount
– The withdraw transaction was audit in the System log file
Chapter 2: Use Case Diagram S.
15
The following questions may be used to help identify the use cases for
a system:
- What are the tasks of each actor ?
- Will any actor create, store, change, remove, or read information in the
system ?
- What use cases will create, store, change, remove, or read this information ?
- Will any actor need to inform the system about sudden, external changes ?
- Does any actor need to be informed about certain occurrences in the
system ?
Chapter 2: Use Case Diagram S.
18
Case 1:
In a hotel management system, a guest can rent rooms. Hotel
receptionist uses the system to assist in the renting. A guest can also
book a room for future renting with the help of the receptionist, but
he has to check if the room has prior booking or not. A Guest pays for
the rooms at the time they check out. He can pay by cash, cheque or
credit card. Receptionists has to logon to the system before they can
use it, but to logon he has go through username/password
verification.
CASE 1 SOLUTION:
19
Chapter 2: Use Case Diagram S.
20
REFERENCES
Booch, G., Rumbaugh, J. & Jacobson, I. (2005). The unified modeling language
user guide. Pearson Education India.