Homepage Demos Overview Downloads Tutorials Reference
Credits

LostTargetTrans Class Reference

#include <LostTargetTrans.h>

Inheritance diagram for LostTargetTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

Causes a transition if the target has not been seen minframe times within delay milliseconds.

Definition at line 12 of file LostTargetTrans.h.

Public Member Functions

 LostTargetTrans (StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, specify delay in milliseconds
 LostTargetTrans (const std::string &name, StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, specify delay in milliseconds
virtual void DoStart ()
 starts timer
virtual void processEvent (const EventBase &e)
 if we receive the timer event, fire()
virtual void resetTimer ()
 resets timer; does not deactivate it
virtual void set_minframes (int minframes)
 set minimum number of frames that target must be seen before resetting the timer

Protected Member Functions

 LostTargetTrans (const std::string &classname, const std::string &instancename, StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)

Private Attributes

unsigned int sid
int minf
 number of frames that target must be seen before resetting the timer
int counter
 number of frames target has been seen so far


Constructor & Destructor Documentation

LostTargetTrans::LostTargetTrans StateNode destination,
unsigned int  source_id,
unsigned int  delay,
int  minframes = 5
[inline]
 

constructor, specify delay in milliseconds

Definition at line 16 of file LostTargetTrans.h.

LostTargetTrans::LostTargetTrans const std::string &  name,
StateNode destination,
unsigned int  source_id,
unsigned int  delay,
int  minframes = 5
[inline]
 

constructor, specify delay in milliseconds

Definition at line 22 of file LostTargetTrans.h.

LostTargetTrans::LostTargetTrans const std::string &  classname,
const std::string &  instancename,
StateNode destination,
unsigned int  source_id,
unsigned int  delay,
int  minframes = 5
[inline, protected]
 

Definition at line 52 of file LostTargetTrans.h.


Member Function Documentation

virtual void LostTargetTrans::DoStart  )  [inline, virtual]
 

starts timer

Reimplemented from TimeOutTrans.

Definition at line 28 of file LostTargetTrans.h.

virtual void LostTargetTrans::processEvent const EventBase e  )  [inline, virtual]
 

if we receive the timer event, fire()

Reimplemented from TimeOutTrans.

Definition at line 33 of file LostTargetTrans.h.

virtual void LostTargetTrans::resetTimer  )  [inline, virtual]
 

resets timer; does not deactivate it

Reimplemented from TimeOutTrans.

Definition at line 43 of file LostTargetTrans.h.

Referenced by processEvent().

virtual void LostTargetTrans::set_minframes int  minframes  )  [inline, virtual]
 

set minimum number of frames that target must be seen before resetting the timer

Definition at line 49 of file LostTargetTrans.h.


Member Data Documentation

int LostTargetTrans::counter [private]
 

number of frames target has been seen so far

Definition at line 62 of file LostTargetTrans.h.

Referenced by LostTargetTrans(), processEvent(), and resetTimer().

int LostTargetTrans::minf [private]
 

number of frames that target must be seen before resetting the timer

Definition at line 61 of file LostTargetTrans.h.

Referenced by LostTargetTrans(), and set_minframes().

unsigned int LostTargetTrans::sid [private]
 

Definition at line 60 of file LostTargetTrans.h.

Referenced by DoStart(), and LostTargetTrans().


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

Tekkotsu v2.2.1
Generated Tue Nov 23 16:37:48 2004 by Doxygen 1.3.9.1