FSM Class Reference

FSM implements a finite state machine. More...

List of all members.

Public Member Functions

def __init__
def setStartState
def addTransition
def makeTransition
 Makes a transition based on the given input.
def __init__
def setStartState
def addTransition
def makeTransition
 Makes a transition based on the given input.

Public Attributes

 transitions
 current_state
 current_input
 current_transition


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 = [] 
)

Definition at line 56 of file doxypy.py.

def setStartState (   self,
  state 
)

Definition at line 62 of file doxypy.py.

def addTransition (   self,
  from_state,
  to_state,
  condition,
  callback 
)

Definition at line 65 of file doxypy.py.

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 = [] 
)

Definition at line 56 of file doxypy.py.

def setStartState (   self,
  state 
)

Definition at line 62 of file doxypy.py.

def addTransition (   self,
  from_state,
  to_state,
  condition,
  callback 
)

Definition at line 65 of file doxypy.py.

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

Definition at line 57 of file doxypy.py.

Definition at line 58 of file doxypy.py.

Definition at line 59 of file doxypy.py.

Definition at line 60 of file doxypy.py.


The documentation for this class was generated from the following files:

Generated on Sun Aug 10 09:11:08 2008 for SLIMpy by  doxygen 1.5.6