FSM Class Reference
FSM implements a finite state machine.
More...
List of all members.
Detailed Description
FSM implements a finite state machine.
Transitions are given as 4-tuples, consisting of an origin state, a target state, a condition for the transition (given as a reference to a function which gets called with a given piece of input) and a pointer to a function to be called upon the execution of the given transition.
Definition at line 54 of file doxypy.py.
Member Function Documentation
def __init__ |
( |
|
self, |
|
|
|
start_state = None , |
|
|
|
transitions = [] | |
|
) |
| | |
def setStartState |
( |
|
self, |
|
|
|
state | |
|
) |
| | |
def addTransition |
( |
|
self, |
|
|
|
from_state, |
|
|
|
to_state, |
|
|
|
condition, |
|
|
|
callback | |
|
) |
| | |
def makeTransition |
( |
|
self, |
|
|
|
input | |
|
) |
| | |
Makes a transition based on the given input.
- Parameters:
-
| input | input to parse by the FSM |
Definition at line 72 of file doxypy.py.
def __init__ |
( |
|
self, |
|
|
|
start_state = None , |
|
|
|
transitions = [] | |
|
) |
| | |
def setStartState |
( |
|
self, |
|
|
|
state | |
|
) |
| | |
def addTransition |
( |
|
self, |
|
|
|
from_state, |
|
|
|
to_state, |
|
|
|
condition, |
|
|
|
callback | |
|
) |
| | |
def makeTransition |
( |
|
self, |
|
|
|
input | |
|
) |
| | |
Makes a transition based on the given input.
- Parameters:
-
| input | input to parse by the FSM |
Definition at line 72 of file doxypy.py.
Member Data Documentation
The documentation for this class was generated from the following files: