Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

TimeOutTrans Class Reference

causes a transition after a specified amount of time has passed More...

#include <TimeOutTrans.h>

Inheritance diagram for TimeOutTrans:

List of all members.

Public Member Functions

 TimeOutTrans (StateNode *destination, unsigned int delay)
 constructor, specify delay in milliseconds
 TimeOutTrans (std::string const &name, StateNode *destination, unsigned int delay)
 constructor, specify delay in milliseconds
 TimeOutTrans (StateNode *destination, unsigned int delay, EventBase::EventGeneratorID_t gid)
 constructor, specify delay in milliseconds, if any events matching given parameters are received, the timer will be reset
 TimeOutTrans (StateNode *destination, unsigned int delay, EventBase::EventGeneratorID_t gid, unsigned int sid)
 constructor, specify delay in milliseconds, if any events matching given parameters are received, the timer will be reset
 TimeOutTrans (StateNode *destination, unsigned int delay, EventBase::EventGeneratorID_t gid, unsigned int sid, EventBase::EventTypeID_t tid)
 constructor, specify delay in milliseconds, if any events matching given parameters are received, the timer will be reset
virtual void start ()
 starts timer
void resetTimer ()
 resets timer
virtual void processEvent (const EventBase &e)
 if we receive the timer event, fire()

Protected Attributes

unsigned int d
 amount to delay (in milliseconds) before transition
unsigned int eventargcount
 level of specificity of events to listen for
EventBase::EventGeneratorID_t egid
 the event generator to listen for
unsigned int esid
 the source to listen for
EventBase::EventTypeID_t etid
 the type to listen for

Detailed Description

causes a transition after a specified amount of time has passed

If any event parameters are specified, this transition will listen for matching events, and if any are received, it will reset the timer

Definition at line 12 of file TimeOutTrans.h.


Constructor & Destructor Documentation

TimeOutTrans::TimeOutTrans ( StateNode destination,
unsigned int  delay 
)

constructor, specify delay in milliseconds

Definition at line 15 of file TimeOutTrans.h.

TimeOutTrans::TimeOutTrans ( std::string const &  name,
StateNode destination,
unsigned int  delay 
)

constructor, specify delay in milliseconds

Definition at line 20 of file TimeOutTrans.h.

TimeOutTrans::TimeOutTrans ( StateNode destination,
unsigned int  delay,
EventBase::EventGeneratorID_t  gid 
)

constructor, specify delay in milliseconds, if any events matching given parameters are received, the timer will be reset

Definition at line 25 of file TimeOutTrans.h.

TimeOutTrans::TimeOutTrans ( StateNode destination,
unsigned int  delay,
EventBase::EventGeneratorID_t  gid,
unsigned int  sid 
)

constructor, specify delay in milliseconds, if any events matching given parameters are received, the timer will be reset

Definition at line 30 of file TimeOutTrans.h.

TimeOutTrans::TimeOutTrans ( StateNode destination,
unsigned int  delay,
EventBase::EventGeneratorID_t  gid,
unsigned int  sid,
EventBase::EventTypeID_t  tid 
)

constructor, specify delay in milliseconds, if any events matching given parameters are received, the timer will be reset

Definition at line 35 of file TimeOutTrans.h.


Member Function Documentation

virtual void TimeOutTrans::processEvent ( const EventBase e  )  [virtual]

if we receive the timer event, fire()

Reimplemented from BehaviorBase.

Reimplemented in LostTargetTrans.

Definition at line 57 of file TimeOutTrans.h.

void TimeOutTrans::resetTimer (  ) 

resets timer

Reimplemented in LostTargetTrans.

Definition at line 51 of file TimeOutTrans.h.

Referenced by processEvent(), and start().

virtual void TimeOutTrans::start (  )  [virtual]

starts timer

Reimplemented from BehaviorBase.

Reimplemented in LostTargetTrans.

Definition at line 40 of file TimeOutTrans.h.


Member Data Documentation

unsigned int TimeOutTrans::d [protected]

amount to delay (in milliseconds) before transition

Definition at line 67 of file TimeOutTrans.h.

Referenced by resetTimer().

the event generator to listen for

Definition at line 72 of file TimeOutTrans.h.

Referenced by start().

unsigned int TimeOutTrans::esid [protected]

the source to listen for

Definition at line 73 of file TimeOutTrans.h.

Referenced by start().

the type to listen for

Definition at line 74 of file TimeOutTrans.h.

Referenced by start().

unsigned int TimeOutTrans::eventargcount [protected]

level of specificity of events to listen for

Definition at line 70 of file TimeOutTrans.h.

Referenced by start().


The documentation for this class was generated from the following file:

Tekkotsu v5.0CVS
Generated Thu Mar 18 06:35:39 2010 by Doxygen 1.6.3