- Inherits from:
- Object
- Declared in:
- DFSM.h
Object
|
+---DFSMTrans
Class Description
The DFSMTrans class implements a transition in the finite state machine.
This class is privately used by DFSM. The class stores the trigger and
the destination label.
- Last modified:
- 28-Jul-2008 (DFSM.h)
Instance Variables
- private DBitArray *_trigger
- the range of events that trigger the transition
- private DFSMState *_destination
- the destination of the transition (reference !)
- Constructors
- - (DFSMTrans *) init
- Initialise to a default transition (not allowed)
- Returns:
- the object
- - (DFSMTrans *) init :(DBitArray *) trigger :(DFSMState *) destination
- Initialise a finite state machine transition (used by DFSM)
- Parameters:
- trigger - the range of events that trigger the transition
destination - the destination of the transition
- Returns:
- the object
- Copy related methods
- - shallowCopy
- Do a shallow copy of the object
- Returns:
- the object
- Deconstructor
- - free
- Free the object
- Returns:
- the object
- Main method
- - (DFSMState *) feed :(int) event
- Feed the transition an event (used by DFSM)
- Parameters:
- event - the event
- Returns:
- the state (or nil if the transition didn't trigger)
generated 06-Sep-2008 by ObjcDoc 3.0.0