Class Diagram

Transcription

Class Diagram
Class Diagram
Project: Coffee Machine
Author: Martin Kropp
Version: 1.1
CoffeeMachineApp
CoffeeMachineDisplay
CoffeeMachine
isOn : boolea
n = false
1
1
1
2
2
Sensor
Label
PowerListener
FillBeanListener
5
Button
FillWaterListener
OneCoffeeListener
TwoCoffeeListener
<<Interface>>
ActionListener
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:09 Freitag, 26. Januar 2001
Class Diagram: Logical View / Class Diagram Page 1
Package Diagram
Project: Coffee Machine
Author: Martin Kropp
Version: 1.0
UI
App
Model
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
Controler
17:05:09 Freitag, 26. Januar 2001
Class Diagram: Logical View / Package Diagram Page 2
Class Diagramm - Package Controler
Project: Coffee Machine
Author: Martin Kropp
Version: 1.1
<<Interface>>
ActionListener
(from Logical View)
PowerListener
(from Logical View)
FillBeanListener
(from Logical View)
FillWaterListener
(from Logical View)
OneCoffeeListener
TwoCoffeeListener
(from Logical View)
(from Logical View)
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:09 Freitag, 26. Januar 2001
Class Diagram: Controler / Main Page 3
Class Diagramm - Package UI
Project: Coffee Machine
Author: Martin Kropp
Version: 1.0
CoffeeMachineDisplay
(from Logical View)
1
1
5
Label
2
(from Logical View)
Button
(from Logical View)
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
Class Diagram: UI / Main Page 4
Class Diagramm - Package Model
Project: Coffee Machine
Author: Martin Kropp
Version: 1.0
CoffeeMachine
(from Logical View)
isOn : boolean = false
1
2
Sensor
(from Logical View)
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
Class Diagram: Model / Main Page 5
Class Diagramm - Package App
Project: Coffee Machine
Author: Martin Kropp
Version: 1.0
CoffeeMachineApp
(from Logical View)
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
Class Diagram: App / Main Page 6
Use Case Diagram
Project: Coffee Machine
Author: Matin Kropp
Version: 1.0
SwitchOff
SwitchOn
UpdateBeanDisplay
BeanSensor
<<extends>>
Get1Coffee
UpdateDisplay
CoffeeDrinker
Get2Coffee
<<extends>>
FillWater
UpdateWaterDisplay Watersensor
FillBeans
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
Use Case Diagram: Use Case View / Main Page 7
State Diagramm - Class CoffeeMachine
Project: Coffee Machine
Author: Martin Kropp
Version: 1.0
water filled
plugged in
switchedOn
Off
entry: initialize
not enough water
Ready
Blocked
entry: checkLevels
not enough beans
beans filled
coffeeButtonPressed / produce coffee
coffee ready
plugged off
Busy
plugged off
plugged off
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
State Diagram: CoffeeMachine Page 8
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
Component Diagram: Component View / Main Page 9
Sequ
ence
Diag
ram
1CoffeeButton :
Button
aCoffeMachine :
CoffeeMachine
Display : Coffee
MachineDisplay
aWaterSensor :
Watersensor
: CoffeeDrinker
BeanDisplay() :
Label
aBeanSensor :
BeanSensor
press()
produce(1)
getLevel()
getLevel()
[enough]
fillCup(1)
refresh()
refresh()
refresh()
File: J:\Laufende\2000\swe\htdocs\examples\UML-Tutorial\design\CoffeeMachine.mdl
17:05:10 Freitag, 26. Januar 2001
Sequence Diagram: Get1Coffee / StandardCase Page 10
WaterDisplay :
Label