Work on #190: Add first batch of automagically generated puml files
This commit is contained in:
29
decorator/etc/decorator.urm.puml
Normal file
29
decorator/etc/decorator.urm.puml
Normal file
@ -0,0 +1,29 @@
|
||||
@startuml
|
||||
package com.iluwatar.decorator {
|
||||
class App {
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
class Troll {
|
||||
+ Troll()
|
||||
+ attack()
|
||||
+ fleeBattle()
|
||||
+ getAttackPower() : int
|
||||
}
|
||||
interface Hostile {
|
||||
+ attack() {abstract}
|
||||
+ fleeBattle() {abstract}
|
||||
+ getAttackPower() : int {abstract}
|
||||
}
|
||||
class SmartHostile {
|
||||
- decorated : Hostile
|
||||
+ SmartHostile(decorated : Hostile)
|
||||
+ attack()
|
||||
+ fleeBattle()
|
||||
+ getAttackPower() : int
|
||||
}
|
||||
}
|
||||
SmartHostile --> "-decorated" Hostile
|
||||
Troll ..|> Hostile
|
||||
SmartHostile ..|> Hostile
|
||||
@enduml
|
Reference in New Issue
Block a user