Docsity

Use Case Modeling: Understanding Actors, Use Cases, and Diagrams, Slides of Object Oriented Programming

Toggle sidebar
bg1
Use Case Modeling
Lecture 14
2
Overview
nUse Cases
nActors
nUse Case Diagrams (Models)
nUse Case Scenarios
nAnalogy between Class Diagram and Use Case
Diagram
nIdentifying Actors
nUse Case Descriptions
nAssociation and Relationships
3
Use Cases
nUse Cases
ndocument the behavior of a system from the
user’s (actor) point of view
nrepresent what the system must provide, rather
than how
nreturn/ provide some value to the user (actor)
UML Notation
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Use Case Modeling: Understanding Actors, Use Cases, and Diagrams and more Slides Object Oriented Programming in PDF only on Docsity!

Use Case Modeling

Lecture 14

2

Overview

n Use Cases

n Actors

n Use Case Diagrams (Models)

n Use Case Scenarios n Analogy between Class Diagram and Use Case Diagram

n Identifying Actors n Use Case Descriptions

n Association and Relationships

3

Use Cases

n Use Cases

n document the behavior of a system from the user’s (actor) point of view n represent what the system must provide, rather than how n return/ provide some value to the user (actor)

UML Notation

4

Actors

n An actor represents anything outside the system that will interact with the system n Can be a human n Can be a software n Can be a hardware n Each actor uses the system in a different way, otherwise they should be the same actor n Each way actor uses the system is a Use Case

UML Notation

5

Types of Actors

n Primary Actors n Payroll Clerk n Registrar of a University n BookBorrower n Secondary Actors called by the system to complete a use case n Printer n Some application

6

Primary Actors

n Active n Initiate activity with the system n Computer users with computer n Phone users with phone n Payroll Clerk with Payroll system n Internet subscriber with web browser n Get some value in return

10

Advantages of System

Boundary

n Identification of actors interacting with different systems

n Recognizing functionalities of different (sub-) systems become easier

11

Rules for Use Case Diagrams

n Show primary actors on left side of diagram

n Show secondary actors on right side of diagram

n UC must provide a real service to the user

n Keep drawings neat and clear n Do not put too many UCs in one diagram

n Number UCs for easy reference

n Maintain a catalog of use case number to use case name to avoid duplicates

12

Use Case Scenarios

n A session that an actor has with the system n A detail of real data and actual expected output

n A use case contains all the events that can occur between an actor-use case pair, not necessarily the ones that will occur in any particular scenario n A use case contains a set of scenarios that explain various sequences of interaction within the transaction (session)

ß Scenario is an instance of a Use Case

13

Analogy between Class and

Use Case Diagrams

n The two diagrams are similar n They represent n A set of things n possible interactions n Class Diagram: n A set of objects n A particular Student may or may not be taking a particular Module n UC Diagram: n A set of role-players and a set of scenarios n A particular BookBorrower may or may not be involved in a book reservation scenario

Student Module

BookBorrower Borrows a copyof book

14

Result of comparison

n Actor in a use case diagram represents a role rather than a particular individual n The communication relationship does not signify that someone in a role will necessarily be involved in a particular scenario

15

Identifying Actors

n Actors are roles in a system

n To identify actors, identify roles played by

n Users of the system n Other systems interacting with this system

n Finding actors constitute:

n Finding human actors n Finding non-human actors