Design Pattern Examples
Overview of object-oriented design patterns
state Directory Reference
Directory dependency graph for state:
state

Files

file  state/__init__.py [code]
 Python implementation of the State Pattern example.
 
file  _state_class_private.py [code]
 Implementation of the StateContext_ClassImpl private class along with the numerous StateXXX classes as used in the State Pattern.
 
file  state_class.py [code]
 Implementation of the StateContext_Class class as used in the State Pattern.
 
file  state_exercise.py [code]
 Implementation of the State_Exercise() function as used in the State Pattern.
 
file  state_interface.py [code]
 Implementation of the IStateContext and IStateBehavior interfaces as used in the State Pattern.