| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
StateMachine
A simple state machine.
This machine is linked to a parent class, on which it calls enter_<state> and exit_<state> methods on state change. Also provided is a mechanism for timed state changes.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
_state = Nonehash(x) |
|||
_statechanger = Nonehash(x) |
|||
_listeners = Nonehash(x) |
|||
|
|||
nextStateAfter = Nonenr of seconds after which the next state change is triggered. |
|||
|
|||
|
get Get the current state. |
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Sets a new state. Calls parent's state transition functions, if they exist. |
Change the state-changer timer to the specified nr of seconds. If none given, resets the timer to the initial delay, 'bumping' it. |
|
|||
nextStateAfternr of seconds after which the next state change is triggered. If None, the timer is not active.
|
|
|||
getGet the current state.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Sep 30 15:21:52 2010 | http://epydoc.sourceforge.net |