Professional Documents
Culture Documents
Use Cases
Object-oriented analysis
Use Case
Context diagram
EmployeeLogin
CheckIn
LibEmployee
CheckOut
LibUser
BarCodeReader
CheckAvailability
UsersDB
Recall
EmployeeLogin
CheckIn
LibEmployee
CheckOut
LibUser
BarCodeReader
CheckAvailability
UsersDB
Recall
byselectingthecheckbook
availabilityoption
Systempromptsforchoiceof
searchbytitle,author,orcall
number
Usermakesselectionandenters
title,authororcallnumber
Systemperformssearchthrough
thelibrarycatalogdatabase
Ifamatchisfound,system
displaysitemstatus(notchecked
out,checkedoutandduedate,
overdue)
StartingandEndingConditions?
Exceptions?
EmployeeLogin
CheckIn
LibEmployee
CheckOut
LibUser
BarCodeReader
CheckAvailability
UsersDB
Recall
<<Include>>: Functional
Decomposition
Problem:
Solution:
<<include>>
<<include>>
<<include>>
Scan
OCR
Check
Problem:
Solution:
BaseUse
Case
ViewMap
<<include>>
AllocateResources
Supplier
UseCase
HomeAutomationexample
factoroutcommonfunctionality
<<include>>
ToggleHotTub
TeaPot
<<include>>
ToggleAppliance
ToggleShades
<<include>>
Shades
ToggleTeaPot
HotTub
User
AnotherHomeAutomationexample
factoroutcommonfunctionality
ControlLights
<<include>>
Lights
(from Use Case View)
User
(from Use Case View)
<<include>>
FeedDogs
LogFunctions
DogFeeder
10
Problem:
Solution:
B
Help
A
ReportEmergency
<<extend>>
11
<<extend>>
False Alarm
User
Sound Alarm
Entry Sensor
12
Problem:
Solution:
Parent
Case
ValidateUser
CheckFingerprint
Child
UseCase
13
Exampleusing<<extend>>
BuyOneWayTicket
<<extend>>
TransactionAborted
<<extend>>
Traveler
BuyWeeklyCard
BuyMonthlyCard
<<extend>>
<<extend>>
<<extend>>
<<extend>>
DistributorOutOfChange
CentralCompSys
UpdateTariff
14
Simplifiedwithanabstractusecase
BuyOneWayTicket
TransactionAborted
<<extend>>
Traveler
BuyWeeklyCard
<<extend>>
<<extend>>
DistributorException
DistributorOutOfChange
BuyMonthlyCard
CentralCompSys
UpdateTariff
15
16
17
18
19
20
21
22
23
24
25
26
Adding a
Textural
Characterization
27
28
29
30
31
32
33
34
Statecharts
and
Sequence
Diagrams
35
36
Use Case
Timing
Diagram
37
Bad:
Better:
Response times for all level one actions will be less than 100
ms.
The cyclomatic complexity of each module shall be in the
range or 10 to 40.
95% of the transactions shall be processed in less than 1 s.
An operator shall not have to wait for the transaction to
complete.
MTBF shall be 100 hours of continuous operation.
38