Newer
Older
GeneratedDesignPatternsByDTRAM / UML / Observer / sequenceIluwatarObserver.wsd
@startuml sequence Iluwatar observer

App -> Weather : timePasses()
activate Weather

Weather -> WeatherObserver : observers.update(currentWeather:WeatherType)
activate WeatherObserver

WeatherObserver -> LOGGER : info()
activate LOGGER

LOGGER --> WeatherObserver
deactivate LOGGER

WeatherObserver --> Weather
deactivate WeatherObserver

Weather --> App
deactivate Weather

@enduml