Work on #190: Add first batch of automagically generated puml files

This commit is contained in:
NooBxGockeL
2016-08-30 13:29:12 +02:00
parent e73867f9a1
commit 36fe249960
86 changed files with 4700 additions and 0 deletions

37
state/etc/state.urm.puml Normal file
View File

@ -0,0 +1,37 @@
@startuml
package com.iluwatar.state {
class AngryState {
- mammoth : Mammoth
+ AngryState(mammoth : Mammoth)
+ observe()
+ onEnterState()
}
class Mammoth {
- state : State
+ Mammoth()
- changeStateTo(newState : State)
+ observe()
+ timePasses()
+ toString() : String
}
interface State {
+ observe() {abstract}
+ onEnterState() {abstract}
}
class PeacefulState {
- mammoth : Mammoth
+ PeacefulState(mammoth : Mammoth)
+ observe()
+ onEnterState()
}
class App {
+ App()
+ main(args : String[]) {static}
}
}
PeacefulState --> "-mammoth" Mammoth
AngryState --> "-mammoth" Mammoth
Mammoth --> "-state" State
AngryState ..|> State
PeacefulState ..|> State
@enduml