Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LostTargetTrans Class Reference

#include <LostTargetTrans.h>

Inheritance diagram for LostTargetTrans:

List of all members.


Detailed Description

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

Definition at line 10 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)
 constructor, only to be called by subclasses (which need to specify their own classname)

Private Attributes

unsigned int sid
 the source id from the detector of the object which is being monitored
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 14 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 20 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]

constructor, only to be called by subclasses (which need to specify their own classname)

Definition at line 51 of file LostTargetTrans.h.


Member Function Documentation

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

starts timer

Reimplemented from TimeOutTrans.

Definition at line 26 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 31 of file LostTargetTrans.h.

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

resets timer; does not deactivate it

Reimplemented from TimeOutTrans.

Definition at line 41 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 47 of file LostTargetTrans.h.


Member Data Documentation

unsigned int LostTargetTrans::sid [private]

the source id from the detector of the object which is being monitored

Definition at line 59 of file LostTargetTrans.h.

Referenced by DoStart(), and processEvent().

int LostTargetTrans::minf [private]

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

Definition at line 60 of file LostTargetTrans.h.

Referenced by processEvent(), and set_minframes().

int LostTargetTrans::counter [private]

number of frames target has been seen so far

Definition at line 61 of file LostTargetTrans.h.

Referenced by processEvent(), and resetTimer().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:30 2007 by Doxygen 1.5.4