| 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
DoStart() will be called when this transition is 'active' - it should listen/monitor for the transition it represents until DoStop() is called.
If the conditions are satisified for a transition, you should call activate() to do the appropriate notifications.
Definition at line 18 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 | activate () |
| call this when the transition should be made, base class version simply calls StateNode::DoStop() on src and StateNode::DoStart() 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 21 of file Transition.h. |
|
|
copy constructor, just in case you need it
Definition at line 23 of file Transition.h. |
|
|
destructor
Definition at line 25 of file Transition.h. |
|
|
call this when the transition should be made, base class version simply calls StateNode::DoStop() on src and StateNode::DoStart() on dst, but you can override.
Definition at line 5 of file Transition.cc. References ReferenceCounter::AddReference(), StateNode::DoStart(), StateNode::DoStop(), dst, get_time(), BehaviorBase::getName(), Socket::printf(), ReferenceCounter::RemoveReference(), serr, and src. |
Here is the call graph for this function:

|
|
assignment operator (only does shallow copy)
Definition at line 31 of file Transition.h. References dst, BehaviorBase::operator=(), and src. |
Here is the call graph for this function:

|
|
the node being transitioned to
Definition at line 34 of file Transition.h. |
|
|
the node being transitioned from
Definition at line 33 of file Transition.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:58:02 2003 by Doxygen 1.3.4 |