doxypy::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.

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.


Member Function Documentation

def doxypy::FSM::__init__ (   self,
  start_state = None,
  transitions = [] 
)

def doxypy::FSM::addTransition (   self,
  from_state,
  to_state,
  condition,
  callback 
)

def doxypy::FSM::makeTransition (   self,
  input 
)

Makes a transition based on the given input.

Parameters:
input input to parse by the FSM

def doxypy::FSM::setStartState (   self,
  state 
)


Member Data Documentation


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

Generated on Thu Mar 5 09:03:55 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8