- Inherits from:
- Object
- Declared in:
- DFSM.h
Object
|
+---DFSMState
Class Description
The DFSMState class implements a state of the finite state machine. The
class stores the transitions and the any-transition. Special purpose
states should inherit from FSMState.
- Last modified:
- 28-Jul-2008 (DFSM.h)
Instance Variables
- private DList *_transitions
- all the transitions for the state
- private DFSMState *_any
- the any-transition-state (reference)
- Constructors
- - (DFSMState *) init
- Initialise a finite state machine state
- Returns:
- the object
- Copy related methods
- - shallowCopy
- Do a shallow copy of the object
- Returns:
- the object
- Deconstructor
- - free
- Free the object (including the transitions)
- Returns:
- the object
- State manipulation
- - (DFSMState *) feed :(int) event
- Feed the state with an event (used by DFSM)
- Parameters:
- event - the event for the state
- Returns:
- the next state (or nil if no transition was found for the event)
- - (DFSMState *) transition :(DBitArray *) trigger :(DFSMState *) destination
- Add a transition to the state (used by DFSM)
- Parameters:
- trigger - the range of events that trigger the transition (or nil)
destination - the next state if the transition is triggered
- Returns:
- the object
generated 06-Sep-2008 by ObjcDoc 3.0.0