Академический Документы
Профессиональный Документы
Культура Документы
Exercise
Modeling with UML:
Sequence and Activity Diagrams
Lilith Al-Jadiri
Lehrstuhl für Angewandte Softwaretechnik
Institut für Informatik
Technische Universität München
aljadiri@in.tum.de
November 7, 2005
Content
27.10.05 Modeling with UML: Use Case and class diagrams
03.11.05 Modeling with UML: Sequence and activity
diagrams
10.11.05 Requirements Elicitation
17.11.05 Analysis
24.11.05 System Design
01.12.05 Dies Academicus
08.12.05 Object Design: Using Design Patterns
15.12.05 Object Design: Object Constraint Language
22.12.05 to 12.01.06 Mapping models to code
19.01.06 to 09.02.06 Miniproject: Asteroids
26.01.06 to 02.02.06 Testing
Write the flow of events and specify all fields for the
use case UpdateTariff that you drew in Exercise
4.
Book
1
*
Part
1
*
Chapter
1
*
Section
1 * 1 * 1 *
1 * 1 * 1 *
selectZone()
lookupPrice(selection)
price
displayPrice(price)
Dataflow
…continued on next slide...
• The source of an arrow indicates the activation which sent
the message
• Horizontal dashed arrows indicate data flow, for example
return results from a message
*insertChange(coin) lookupCoin(coin)
price
Iteration displayPrice(owedAmount)
[owedAmount<0] returnChange(-owedAmount)
Condition
…continued on next slide...
ChangeProcessor
Passenger
Creation
createTicket(selection)
Ticket
print()
free()
Destruction
[lowPriority]
Open Allocate
Incident Resources
Notify
Police Chief
Allocate
Splitting Resources Synchronization
Document
Incident
Allocate Dispatcher
Resources
FieldOfficer
Document
Incident
Employee
Secretary
4
Car Wheel
w[]
1 3
Borrower Book
currBorr bk[]
FastFood pc PriceChecker
Counter
getPrice()
1 3
Borrower Book
currBorr bk[]
MovieTheater BoxOffice
1 1
whole part
0..*
composition
0..* aggregation
Movie
part
processOrders() getOrder()
Window
scrollbar[2]: Slider
title: Header
body: Panel
Window
1 1 1
4
Car Wheel
wheels