/
githubmirror
/
java-design-patterns
Обзор
Документация
Войти
/
githubmirror
/
java-design-patterns
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
state/etc/state.urm.puml
39 строк
817 B
Ilkka Seppälä
#1113 Add uml-reverse-mapper plugin
07 дек 2019, 19:03
07 дек 2019, 19:03
0685a50
Код
Авторство
О чём код?
@startuml package com.iluwatar.state { class AngryState { - LOGGER : Logger {static} - mammoth : Mammoth + AngryState(mammoth : Mammoth) + observe() + onEnterState() } class App { + App() + main(args : String[]) {static} } class Mammoth { - state : State + Mammoth() - changeStateTo(newState : State) + observe() + timePasses() + toString() : String } class PeacefulState { - LOGGER : Logger {static} - mammoth : Mammoth + PeacefulState(mammoth : Mammoth) + observe() + onEnterState() } interface State { + observe() {abstract} + onEnterState() {abstract} } } PeacefulState --> "-mammoth" Mammoth AngryState --> "-mammoth" Mammoth Mammoth --> "-state" State AngryState ..|> State PeacefulState ..|> State @enduml