State API Documentation
- class Context[source]
Bases:
objectThe Context defines the interface of interest to clients and maintains a reference to an instance of a State subclass representing the current state.
- class State[source]
Bases:
ABCThe State interface declares methods that all Concrete States should implement.
- class ConcreteStateA[source]
Bases:
StateConcreteStateA implements the behavior associated with a state.