class documentation
The user can derive FSM contexts from this class and interface to them with the methods of this class.
The finite state machine needs to be initialized to the starting state of the FSM. This must be done manually in the constructor of the derived class.
Method | __init__ |
Undocumented |
Method | clear |
Clears the current state. |
Method | empty |
Remove all states from the state stack. |
Method | get |
Returns the debug flag's current setting. |
Method | get |
Returns the stream to which debug output is written. |
Method | get |
Returns the state which a transition left. May be None |
Method | get |
Returns the current state. |
Method | get |
Returns the state stack's depth. |
Method | get |
Returns the current transition's name. Used only for debugging purposes. |
Method | is |
Is this state machine already inside a transition? True if state is undefined. |
Method | is |
Returns True if the state stack is empty and False otherwise. |
Method | pop |
Make the state on top of the state stack the current state. |
Method | push |
Push the current state on top of the state stack and make the specified state the current state. |
Method | set |
Sets the debug flag. A true value means debugging is on and false means off. |
Method | set |
Sets the debug output stream. |
Method | set |
Sets the current state to the specified state. |
Instance Variable | _debug |
Undocumented |
Instance Variable | _debug |
Undocumented |
Instance Variable | _previous |
Undocumented |
Instance Variable | _state |
Undocumented |
Instance Variable | _state |
Undocumented |
Instance Variable | _transition |
Undocumented |