#include <TestSource.h>
Inheritance diagram for ot::TestSource:


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 |
|
||||||||||||
|
simple constructor, sets members to initial values
|
|
|
|
|
|
tests for EventGenerator interface being present. Is overriden to return 1 always.
Reimplemented from ot::Node. |
|
|
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 ! |
|
|
|
|
|
the original event
|
|
|
frequency of updates
|
|
|
use noise and noise level
|
|
|
offset of first update relative to main loop start
|
|
|
the perturbed event posted to the observers
|
1.4.6