You are on page 1of 21

Object Oriented Analysis

and Design
USE CASE DIAGRAM
Compiled and Presented By:
Muhammad Imran Saeed,
Assistant Professor,
DCS&SE,
© 2020 Muhammad Imran Saeed. This International Islamic University, Islamabad.
Lecture is available free for non-commercial
use with attribution.
Object Oriented
Analysis and Design
Disclaimer and Acknowledgement
These Class notes/lectures have been COMPILED to
help students for online Classes (due to Covid’19
Epidemic) from different books and resources available
on internet.
So I personally acknowledge all the authors, teachers,
presenters, publishers and other organizations etc.
This Compilation work is soul Intellectual Property of Undersigned.
© 2020 Muhammad Imran Saeed. This Lecture is available free for non-commercial use with attribution.
Object Oriented
Analysis and Design
Textbook Followed in this Series of Lectures

-OOAD with UML: Object Oriented Analysis and Design


Using the UML.
-Other Resources from Internet.

© 2020 Muhammad Imran Saeed. This Lecture is available free for non-commercial use with attribution.
Object Oriented
Analysis and Design

UML (Unified Modeling Language)Diagrams


USE CASE DIAGRAM-I
Object Oriented
Analysis and Design

What is USE CASE


DIAGRAM?
Object Oriented
Analysis and Design
What is USE CASE DIAGRAM?
• Use case diagrams model the functionality of a system
using actors and use cases.
• Use cases are a set of actions, services, and functions
that the system needs to perform.
• In this context, a "system" is something being developed
or operated, such as a web site.
• The "actors" are people or entities operating under
defined roles within the system.
Object Oriented
Analysis and Design
Why Make Use Case Diagrams?
• Use case diagrams are valuable for visualizing the
functional requirements of a system that will
translate into design choices and development
priorities.
• They also help identify any internal or external
factors that may influence the system and should
be taken into consideration.
Object Oriented
Analysis and Design
Purpose of USE CASE Diagram
1. Organizes functional requirements
2. Models the goals of system/actor (user) interactions
3. Gather system requirements and actors. Use case
diagrams specify the events of a system and their flows.
Object Oriented
Analysis and Design
Basic Use Case Diagram Symbols and Notations
• System/System Boundary
Draw your system's boundaries using a rectangle that contains
use cases. Place actors outside the system's boundaries.
Object Oriented
Analysis and Design
Basic Use Case Diagram Symbols and Notations
● Actors:
- Actors are the users of a system.
- When one system is the actor of another system, label
the actor system with the actor stereotype for example:
Sensor, Camera, Alarm, etc.,
Object Oriented
Analysis and Design
Basic Use Case Diagram Symbols and Notations

• Use Case
– Functionalities to be represented as
use case
– A use case describes how actors uses
a system to accomplish a particular
goal.
Object Oriented
Analysis and Design
Basic Use Case Diagram Symbols and Notations

• Association/Relationship
The relationships between and among the actors and
the use cases.
• Two types of Relationship
• <<include>> Use Case
• <<extend>> Use Case
Object Oriented
Analysis and Design
Basic Use Case Diagram Symbols and Notations
Use Case

Association

Generalization

Include (Relationship)

Extend(Relationship)

System Boundry
Object Oriented
Analysis and Design
How to Draw a Use Case Diagram?
1. Identify the Actors (role of users) of the system.
2. For each category of users, identify all roles played by the users
relevant to the system.
3. Identify what are the users required the system to be performed
to achieve these goals.
4. Create use cases for every goal.
5. Structure the use cases.
6. Prioritize, review, estimate and validate the users.
Object Oriented
Analysis and Design
Reading Assignment:
ADVANTAGES DISADVANTAGES
● The use case diagram provides a ● They do not capture the non-functional
comprehensive summary of the whole requirements easily.
software system in a single illustration.

● The use case model can be utilized in several ● There might be a learning curve for the
other aspect of software development as well, developer and/or specially, the client in using
e.g. Cost Estimation, Project Planning, Test these use cases.
Case Preparation and User Documentation.
Object Oriented
Analysis and Design

To make use case approach more "Agile", do not detail all use
cases, but prioritize them in your product backlog, you should
refine the use case in different level of details according to the
development phase with just-in-time and just-enough manner.
Object Oriented
Analysis and Design

Use Case Diagram Examples


The figure below shows an ATM use case
diagram
Object Oriented
Analysis and Design
Object Oriented
Analysis and Design

Use Case Diagram Examples


This example depicts a model of several
business use cases (goals) which represents
the interactions between a Restaurant (the
business system) and its primary actors.
Object Oriented
Analysis and Design
Advice

Along with this presentation also study from book and


consider different case studies from different websites
to increase your depth of knowledge.

QUESTIONS
© 2020 Muhammad Imran Saeed. This Video/presentation is available free for non-commercial use with attribution.

You might also like