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

View File

@ -0,0 +1,60 @@
@startuml
package com.iluwatar.flyweight {
class PoisonPotion {
+ PoisonPotion()
+ drink()
}
class StrengthPotion {
+ StrengthPotion()
+ drink()
}
class HealingPotion {
+ HealingPotion()
+ drink()
}
class PotionFactory {
- potions : Map<PotionType, Potion>
+ PotionFactory()
~ createPotion(type : PotionType) : Potion
}
interface Potion {
+ drink() {abstract}
}
class App {
+ App()
+ main(args : String[]) {static}
}
class AlchemistShop {
- bottomShelf : List<Potion>
- topShelf : List<Potion>
+ AlchemistShop()
+ enumerate()
- fillShelves()
+ getBottomShelf() : List<Potion>
+ getTopShelf() : List<Potion>
}
class HolyWaterPotion {
+ HolyWaterPotion()
+ drink()
}
class InvisibilityPotion {
+ InvisibilityPotion()
+ drink()
}
enum PotionType {
+ HEALING {static}
+ HOLY_WATER {static}
+ INVISIBILITY {static}
+ POISON {static}
+ STRENGTH {static}
+ valueOf(name : String) : PotionType {static}
+ values() : PotionType[] {static}
}
}
AlchemistShop --> "-topShelf" Potion
PoisonPotion ..|> Potion
StrengthPotion ..|> Potion
HealingPotion ..|> Potion
HolyWaterPotion ..|> Potion
InvisibilityPotion ..|> Potion
@enduml