The State Pattern
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
if
statements
A Statechart Diagram for a Simplified Garage Door Opener
if
statements be
for this?State
State
classesContext
In UML:
Using the State Pattern