ot::SelectionNode Class Reference

#include <SelectionNode.h>

Inheritance diagram for ot::SelectionNode:

Inheritance graph
[legend]
Collaboration diagram for ot::SelectionNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
virtual void onEventGenerated (Event &event, Node &generator)

Protected Member Functions

 SelectionNode (double t)

Protected Attributes

double timeOut
 Variable for timeout value (in miliseconds).
double lastTimeStamp
 Variable for the last event timestamp from the prefered input node.

Friends

class CommonNodeFactory

Constructor & Destructor Documentation

ot::SelectionNode::SelectionNode double  t  )  [protected]
 

constructor method. It sets initial values for the timeout.


Member Function Documentation

virtual int ot::SelectionNode::isEventGenerator  )  [inline, virtual]
 

tests for EventGenerator interface being present and returns 1, if present.

Returns:
always 1

Reimplemented from ot::Node.

void ot::SelectionNode::onEventGenerated Event event,
Node generator
[virtual]
 

This method is called by any child node. Checks whether the incoming event is from the wrapper node, otherwise it compares it against the last event from the wrapper node and if it was created later then the specified time out, it is passed on.

Parameters:
event the event value passed
generator the node generating the event

Reimplemented from ot::Node.


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]
 


Member Data Documentation

double ot::SelectionNode::lastTimeStamp [protected]
 

Variable for the last event timestamp from the prefered input node.

double ot::SelectionNode::timeOut [protected]
 

Variable for timeout value (in miliseconds).


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:28:45 2007 for NaviTrack by  doxygen 1.4.6