Object Oriented Analysis and Design
Object Oriented Analysis and Design
Level II - Semester 3
Ref 1: Alan Dennis, Barbara Haley, David Tegarden, Systems analysis design, An Object
Oriented Approach with UML : an object oriented approach, 5th edition, John Wiley &
Sons, 2015, ISBN 978-1-118-80467-4
© e-Learning Centre, UCSC 4
4.1 Introduction to Use-Case Modeling
Use-case diagram
• Depicts the interactions between the system and external
systems / users.
• Graphically describes who will use the system and in
what ways the user expects to interact with the system
• A Subject Boundary represents the scope of the subject
Subject Boundary
UseCase1
Actor1 UseCase2
Actor3
UseCase1
Actor2
Actor
• An Actor may
• Only input information to the system.
• Only receive information from the system.
• Input and receive information to and from the system.
Actors :
There are primarily four types of Actors.
Types of Actors
• Primary Business Actors – Benefits from the execution of use
cases by receiving some thing measurable.
e.g. Employee receiving a pay cheque.
Search library
inventory
Customer
Apply for
membership
Check out
books
Visitor Search library Patron
inventory
Visitor
Apply for
Check out membership
Patron books
© e-Learning Centre, UCSC 15
4.2 Elements of a Use Case Diagram
Use Case
• A behaviorally related sequence of steps both
automated and manual for the purpose of
completing a single business task.
• Describe system functions from the perspective of
external users in a manner they understand.
• They are the primary elements in software
development.
• They represent the functionality provided by the
system. i.e. what capabilities will be provided to an
actor by the system.
Relationships
• Associations (also called <<Communicates>>)
• A relationship between an actor and a use case in which
an interaction occurs between them
• Modeled as a solid line connecting the actor and the use
case
• May be bidirectional or unidirectional
• UML 2.5 allows multiplicity
Two or more Player actors are involved in the Play Game use case.
Each Player participates in one Play Game.
Refer Catalogue
<<extend>>
Relationships
• Include <<include>>
• The base use case explicitly incorporates the
behavior of another use case.
• The relationship between the abstract use case
and use case that uses it.
ChangeEmployeeDetails
FindEmployee
Manager ViewEmployeeDetails
Details
DeleteEmployeeDetails
• Depends on
Establish
Bank Account
Make a
Deposit
Make a
Withdrawal
• Relationships
Search library
• Generalization inventory
Customer
Apply for
membership Check out
books
Visitor Search library Patron
inventory Visitor
Apply for
membership
Check out
Patron books
An Example :
Make Old Patient
Appointment
Use-Case Name:
Use-Case ID: Use-Case Type
Priority: Business Requirements:
Source:
Primary Business Actor:
Other Participating Actors: Importance of the
Other Interested Use Case – typically
Stakeholders:
Description: high , medium , low
Use-Case Name:
Use-Case ID: Use-Case Type
Priority: Business Requirements:
Source:
Primary Business Actor:
Other Participating Actors:
Other Interested Who benefits from
Stakeholders: the use case
Description:
Use-Case Name:
Use-Case ID: Use-Case Type
Priority: Business Requirements:
Source:
Primary Business Actor:
Other Participating Actors:
General understanding
Other Interested
Stakeholders: of problem domain and
Description: scope
In brief
© e-Learning Centre, UCSC 44
Sample High-Level Use-Case Narrative