Design Pattern Examples
Overview of object-oriented design patterns
state_interface.py File Reference

Implementation of the IStateContext and IStateBehavior interfaces as used in the State Pattern. More...

Go to the source code of this file.

Classes

class  CurrentState
 Represents the current state of the state machine. More...
 
class  SpecialCase
 This class contain special characters. More...
 
class  IStateContext
 Represents the context as passed to each state class. More...
 
class  IStateBehavior
 Represents a class that implements one state of the state machine. More...
 

Namespaces

namespace  DesignPatternExamples_python
 The DesignPatternExamples_python package, containing 20 examples of design patterns, each in their own namespace.
 
namespace  DesignPatternExamples_python.state
 
namespace  DesignPatternExamples_python.state.state_interface
 

Detailed Description

Implementation of the IStateContext and IStateBehavior interfaces as used in the State Pattern.

Definition in file state_interface.py.