Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Transition.h>
Inheritance diagram for Transition:
This is an abstract class - you'll want to subclass it to put conditions on the transitions
Definition at line 10 of file Transition.h.
Public Member Functions | |
Transition (StateNode *source, StateNode *destination) | |
constructor, specifies source and destination StateNode's | |
Transition (const Transition &t) | |
copy constructor, just in case you need it | |
virtual | ~Transition () |
destructor | |
virtual void | enable ()=0 |
called by StateNode when it becomes active - use this to request events (or whatever you need to do) | |
virtual void | disable ()=0 |
called by StateNode when it becomes inactive - undo whatever you did in Enable() | |
virtual void | activate () |
call this when the transition should be made, base class version simply calls StateNode::Leave() on src and StateNode::Enter() on dst, but you can override. | |
Transition & | operator= (const Transition &t) |
assignment operator (only does shallow copy) | |
Protected Attributes | |
StateNode * | src |
the node being transitioned from | |
StateNode * | dst |
the node being transitioned to |
|
constructor, specifies source and destination StateNode's
Definition at line 13 of file Transition.h. |
|
copy constructor, just in case you need it
Definition at line 15 of file Transition.h. |
|
destructor
Definition at line 17 of file Transition.h. |
|
call this when the transition should be made, base class version simply calls StateNode::Leave() on src and StateNode::Enter() on dst, but you can override.
Definition at line 4 of file Transition.cc. References StateNode::DoStart(), StateNode::DoStop(), dst, and src. |
|
called by StateNode when it becomes inactive - undo whatever you did in Enable()
Implemented in CompareTrans< T >, TimeOutTrans, and VisualTargetCloseTrans. |
|
called by StateNode when it becomes active - use this to request events (or whatever you need to do)
Implemented in CompareTrans< T >, TimeOutTrans, and VisualTargetCloseTrans. |
|
assignment operator (only does shallow copy)
Definition at line 28 of file Transition.h. |
|
the node being transitioned to
Definition at line 31 of file Transition.h. |
|
the node being transitioned from
Definition at line 30 of file Transition.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:13 2003 by Doxygen 1.3.2 |