LostTargetTrans Class Reference#include <LostTargetTrans.h>
Inheritance diagram for LostTargetTrans:
[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 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] |
|
| LostTargetTrans::LostTargetTrans |
( |
const std::string & |
name, |
|
|
StateNode * |
destination, |
|
|
unsigned int |
source_id, |
|
|
unsigned int |
delay, |
|
|
int |
minframes = 5 |
|
) |
[inline] |
|
| 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] |
|
| virtual void LostTargetTrans::processEvent |
( |
const EventBase & |
e |
) |
[inline, virtual] |
|
| virtual void LostTargetTrans::resetTimer |
( |
|
) |
[inline, virtual] |
|
| 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
The documentation for this class was generated from the following file:
|