Class DFSM

Inherits from:
Object
Declared in:
DFSM.h

Class Hierarchy

    Object
      |
      +---DFSM

Class Description

The DFSM class implements a (simple) finite state machine. The state machine is built by creating a number of transitions for every state. After the state machine is built, the processing is started by using the 'start' method. From that moment on, events can be fed to the state machine by calling 'feed'. This method returns the current state. With the method 'try' an event can be tested for the state machine, without changing the internal state of the machine. There is one assumption: events are ints.

Last modified:
23-Jul-2006 (DFSM.h)

Instance Variables

private DFSMState *_current
the current state
private DFSMState *_previous
the previous state
private DList *_states
all known states

Method Index


generated 25-Jul-2006 by ObjcDoc 3.0.0