ot::TestSource Class Reference

#include <TestSource.h>

Inheritance diagram for ot::TestSource:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

int isEventGenerator ()
void push (void)

Public Attributes

int frequency
 frequency of updates
int offset
 offset of first update relative to main loop start
double noise
 use noise and noise level
Event event
 the original event
Event perturbed
 the perturbed event posted to the observers

Protected Member Functions

 TestSource (int frequency_, int offset_)
virtual ~TestSource ()

Friends

class TestModule

Constructor & Destructor Documentation

ot::TestSource::TestSource int  frequency_,
int  offset_
[inline, protected]
 

simple constructor, sets members to initial values

Parameters:
frequency_ initial value for member frequency
offset_ initial value for member offset

virtual ot::TestSource::~TestSource  )  [inline, protected, virtual]
 


Member Function Documentation

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

tests for EventGenerator interface being present. Is overriden to return 1 always.

Returns:
always 1

Reimplemented from ot::Node.

void ot::TestSource::push void   ) 
 

pushes event down the line. Needed to access protected updateObservers method in EventGenerator. Note that the implementation of this method is in the file TestModule.cxx !


Friends And Related Function Documentation

friend class TestModule [friend]
 


Member Data Documentation

Event ot::TestSource::event
 

the original event

int ot::TestSource::frequency
 

frequency of updates

double ot::TestSource::noise
 

use noise and noise level

int ot::TestSource::offset
 

offset of first update relative to main loop start

Event ot::TestSource::perturbed
 

the perturbed event posted to the observers


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