/
githubmirror
/
java-design-patterns
Обзор
Документация
Войти
/
githubmirror
/
java-design-patterns
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.13.0
command/etc/command.urm.puml
84 строки
2 KB
Ilkka Seppälä
UML generation: Mark the urm-maven-plugin execution to be ignored in Eclipse and recreate all .puml files
18 сен 2016, 17:51
18 сен 2016, 17:51
6026eed
Код
Авторство
О чём код?
@startuml package com.iluwatar.command { class InvisibilitySpell { - target : Target + InvisibilitySpell() + execute(target : Target) + redo() + toString() : String + undo() } class App { + App() + main(args : String[]) {static} } abstract class Command { + Command() + execute(Target) {abstract} + redo() {abstract} + toString() : String {abstract} + undo() {abstract} } class Goblin { + Goblin() + toString() : String } abstract class Target { - size : Size - visibility : Visibility + Target() + getSize() : Size + getVisibility() : Visibility + printStatus() + setSize(size : Size) + setVisibility(visibility : Visibility) + toString() : String {abstract} } class Wizard { - redoStack : Deque<Command> - undoStack : Deque<Command> + Wizard() + castSpell(command : Command, target : Target) + redoLastSpell() + toString() : String + undoLastSpell() } class ShrinkSpell { - oldSize : Size - target : Target + ShrinkSpell() + execute(target : Target) + redo() + toString() : String + undo() } enum Size { + LARGE {static} + NORMAL {static} + SMALL {static} + UNDEFINED {static} - title : String + toString() : String + valueOf(name : String) : Size {static} + values() : Size[] {static} } enum Visibility { + INVISIBLE {static} + UNDEFINED {static} + VISIBLE {static} - title : String + toString() : String + valueOf(name : String) : Visibility {static} + values() : Visibility[] {static} } } Target --> "-size" Size Wizard --> "-undoStack" Command ShrinkSpell --> "-oldSize" Size InvisibilitySpell --> "-target" Target ShrinkSpell --> "-target" Target Target --> "-visibility" Visibility InvisibilitySpell --|> Command Goblin --|> Target ShrinkSpell --|> Command @enduml