You are on page 1of 12

Class diagram > Case study

1 1..*
Floor
Sentences Wall
Room
Roof 1 3
4
0..1
Statements

S2
Classroom

S1 Hut

Country
1
Country Capital city Tepee
name
population
language
capital city Country
Country
money

{sub-set} {sub-set}
1..* 1
1..* 1
Town Town Capital city
City Capital city
Class diagram > Case study

Animal
Sentences S5
Walking Feeding
{inclusive}
Statements
Biped Quadruped Herbivore Carnivore

Herbivore Carnivore Herbivore Carnivore


Man Quadruped Biped
Biped Quadruped
0..1
is married to
 Person 0..1
0..* Document
0..1 is in SP
0..1 with  S4 {exclusive OR}
Woman
S3 Directory File
{exclusive OR}
Class diagram > Case study

Sentences

Statements “interface” “interface”


Flying Detection
Plane Machine Radar Machine

S6

AWACS 1 AWACS 4 AWACS 3 AWACS 2

Plane Radar

AWACS 5 AWACS 7 AWACS 6


Class diagram > Case study

Control FH 101:
Room

Statements Stolz:
Professor NN:
Java: lecture
lecture
Chidume: Ilambo:
C++: Professor Student
lecture
Oyonde:
Student
FH 100:
Room
Traoré: Beidu:
Professor Student
Traoré: SE:
Student lecture

FH 103:
Room
Class diagram > Case study

Travel Agency 2..* Combo

Service

1 1..* Product
departure
arrival
Contract

1..*
Ticket Rental
Customer Registration
expiry model
name fee rank
address
0..* 0..* 0..*
operated by provided by related to
1 1 1
Frequent Customer
Aircraft Rental C° Hotel
discount rate
fee

Partner
Travel agency name
Statements
State diagram > Case study

Watch
[Button3.clicked()]
Off On
[Button3.clicked()] Statements
Working

Display

[Energy] [Button1.doubleclicked()]
[Button2.clicked()] / hour++ mod 24

Hour modification
[Energy]

[Button1.clicked()]

Minute modification

[Button1.clicked()]
[Button2.clicked()] / minute++ mod 60
State diagram > Case study

Searching
1 month before DD

[ room available] / register()

Booking opened

booking(c) / add(c) Full cancellation [queue empty] / remove(fifo)

booking(c) [bkg = C-1] / bkg = C cancellation [queue empty] / bkg--

show
cancellation booking(c) / bkg = 1 Not full booking(c) [bkg < C-1] / bkg++

1 hour before TT
Show
TT Booking
end Show started
closed
Statements
State diagram > Case study

Hanged up

picking up hanging up / return credit

Crediting coin(m) / credit = credit + m

[credit > M]

Picked up
Numbering
Entry / start bip [Number.isComplete ()]
Exit / stop bip [Number.isValid ()]
Verification Ringing

time out
[Number.isValid ()] occupied
digit(n) / Number.add(n)

[credit < C] Communication

Phone Statements
time unit / credit--
State diagram > Case study

Displaying
information card / check(card) digits(4) / check(PIN)
screen touch
[serious]
[valid card]
Reading card Reading PIN
[valid card]

[invalid PIN in 3 attempts]


Error
[valid PIN]
Do / analyze
Acting
[valid amount]
Withdrawing
[card out]

[serious] number / check(amount)

time out
[valid amount] / deliver money
ATM cancellation

Delivering ticket
Restituting card [ticket printed]
Statements
Use case diagram > Case study

Civil office Statements

Civil office

Wife conclude marriage


Mayor

include extend
Husband ?
check agreement

conclude partnership

Partner
Use case diagram > Case study

Flight system
include take off Reactor

maximize thrust

include land up

Pilot

serve
Passenger Steward

book

extend

Flight assign place Crew member


system
upgrade Booking
Statements system
Sequence diagram > Case study

: Customer : Balance : Keyboard : Screen : Safe : Printer : Manager

letters

weight
mode
mode
fee
fee
other letters ?

[ any letters () = true]


ALTERNATIVE

[else]
coins
OK
bill
Post stamps
office balance
surplus

Statements

You might also like