0% found this document useful (0 votes)
183 views35 pages

Advanced Use Case Modeling in OOAD

The document discusses use case modeling and provides examples and explanations of use case elements like actors, relationships, and diagrams. It describes how to identify use cases, document them at different levels of detail, and illustrates their role in requirements analysis and system design.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
183 views35 pages

Advanced Use Case Modeling in OOAD

The document discusses use case modeling and provides examples and explanations of use case elements like actors, relationships, and diagrams. It describes how to identify use cases, document them at different levels of detail, and illustrates their role in requirements analysis and system design.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Resources Schedules

Works

Risks Projects

Use Case Modeling


Introduction Diagram
Use Cases

Document Samples

Use Cases
Section #1

INTRODUCTION TO USE CASES

Introduction
Use Cases
Use cases represent typical sets of scenarios that help to structure,
relate and understand the essential requirements.

To obtain use cases interview the users and ask them about the
various things they want to do with the system.

Describe each use case in a paragraph and annotate it with


documents, forms, …

Introduction
Usefulness of Use cases
One of the most important things during analysis is to discover all the
potential use cases.

Unified Modeling Language (UML) delivers the use cases to analyze the
requirements of a system.
• Use cases are typical interactions a user has with the system.
• A use case indicates a function that the user can understand and that
has value for the user.
• Use cases can vary considerably in size.

Use cases are an essential tool in requirements capturing and in planning


and controlling an iterative project.

Introduction
Role of the Use Case in SE
View 1
Use Goals & System
Interactions Application domain level:
ensure consistent formatting
for a document, format two
documents in the same style.

View 2

System design level: define


a style, change a style and
apply a style, import a style
from another, already existing
document.

The point of view


Perspective of use cases
Role of Use Case Diagrams in UML
Section #2

USE CASE DOCUMENT

Brief Casual
Document
Fully dressed Notes
Brief Document
Use Case: Buy Item
Actors: Customer, Cashier
Description:
- The use case begins when the customer arrives at a checkout with items to
purchase.
- The Cashier records each item. If there is more than one of an item, the
Cashier can enter the quantity as well.
- The system determines the item price and adds the information to the running
sales transaction. The description and price of the current item are presented.
- On completion of item entry, the cashier indicates that item entry is complete.
- The system calculates and presents the sale total.

Document
Casual Document
Use Case: Painterly Render
Actors: Modeler, Imager, Artist, Animator
Description:
1 - Modeler designs the geometric shapes of a 3-D scene consisting of triangulated
polygon meshes
2 - System automatically places particles across the geometry
3 - Artist sets paint parameters on geometry for reference images
4 - Imager specifies camera attributes (position, orientation, lense size)
5 - System creates painterly image using reference images, particles and geometry
6 - Artist refines image (repeat from step3 until satisfied)
Alternative: Animation at step 4 artist can specify a smooth spline path of camera
attributes for creating a painterly animation of the scene. Step 5 then creates a sequence
of painterly frames which when played back produce an animation.

Document
Fully Dressed Document
User
Interface
A fully dressed document is a Specifica
tion
Supplemental Specification Performa
Open nce
of a Use Case Issues Require
ments

Constrai Business
nts Rules

Data
Dictionar
y

Document
Section #3

USE CASE DIAGRAM

Actor Case
Diagram
Relationship External System
Actors
Actor Name

An actor is a role that a user or other systems plays with respect to the
system to be developed.

A single actor in a use case diagram can represent multiple users (or
systems) .

A single user (or system) also may play multiple roles.

Actors don‘t need to be human, e.g., an external system that needs some
information from the current system.

Diagram
Cases
The “case aspect” in a use case represents a high-level description of a
desired action in which the actor is involved.

UseCase Name

Diagram
system boundary NextGen communication

Process Sale alternate


notation for
a computer
Cashier Payment system actor
Handle Returns Authorization
Service

actor «actor»
Process Rental Tax Calculator

«actor»
Cash In Accounting
System
«actor»
Sales Activity
System «actor»
Analyze Activity
HR System

Manage Security

System Manage Users


Administrator use case
...

Use Case Example


Relationships
Types Description Symbols

association Relationship between an actor and a use case

extend Relationship between two use cases <<extend>>

generalization Relationship between two actors

include or use Relationship between two use cases <<include>>

Diagram
Generalization Relationship

general superclass actor PlaceOrder


SalePerson

EstablishCredit
Supervisor

Diagram
Include Relationship
Use include when you are repeating yourself in two or more separate
use cases.

Copying the description of that behavior introduces redundance and may


lead to inconsistencies when the behavior is changed.

Diagram
Extend Relationship
Extensions are used instead of modeling every extra case by a single use
case.

Extensions are used instead of creating a complex use case that covers
all variations.

Diagram
Interaction with
All of
External Systems Interacti
ons

Use external events to


identify use cases which are
not captured by actors.

Think about all the possible


events from the outside world
to which you want to react.
User Context
Request
s

Diagram
Working with Summary Goal Use
Cases
Use cases are all about externally-required functionality

Discuss use cases with system users.

Adjust the granularity of your use cases according to the complexity of


the individual problem you are working on, bearing in mind that

Notes
A: Repairing process B: Invoice process

Customer´s
Call Repairing
Service
Mobile
repairing
unit Accounting
office

Engine
breakdown

B
Repairing
control

Customer Service
Push Flow Diagram

Steps in Push Flow


Information Flow Diagram
Use Case Model Elements
Name & description
of domain or project
Actor list
▪ Roles
▪ Descriptions

Use case map


Model Use Case Specification
Title
▪ Use Case Specification
▪ ▪ Description
UseTitle
Case Specification
▪ ▪ Pre & Title
Post
▪ Description
Use CaseConditions
Specification
▪ ▪ Basic Pre course
& of action
Title Conditions
Post
▪ ▪ Description
▪ ▪ . .▪ .Basic
▪ Pre course
& PostofConditions
Description action
▪ ▪ .▪. .BasicPre course of action
& Post Conditions
▪ ▪ . .Basic
. course of action
▪ ...
The Missing Link
Use Case Model
Context Diagram
Links the high-level context diagram and
Environment System the individual system use cases
Roadmap of the ground --scope-- the
project will cover
Connects initial project goals and
Use Case Model
--Actor List
--Use Case Map
development activities
Excellent tool for keeping resources
focused on value-added activities
Use Case Specification
Section #4

SAMPLES FOR USE CASES

UC Analysis
Samples
Balancing Process
Example #1
Summary Goal UC for
Warehousing Management System

What’s wrong here?


Example #2

UC for Receive Products

What’s wrong here?


Example #3
Example #4
Any Questions?
hvusynh@hcmiu.edu.vn

You might also like