User Manual, Developers Guide and API Documentation

wns::probe::bus::StatEvalProbeBus Class Reference
[ProbeBusses]

Wrap StatEval Objects and attach them to a ProbeBus. More...

#include <probe/bus/StatEvalProbeBus.hpp>

Inheritance diagram for wns::probe::bus::StatEvalProbeBus:

Inheritance graph
[legend]
Collaboration diagram for wns::probe::bus::StatEvalProbeBus:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool accepts (const wns::simulator::Time &, const IContext &)
 Called to determine if the ProbeBus would accept the measurement.
virtual void onMeasurement (const wns::simulator::Time &, const double &, const IContext &)
 Called to actually process the measurement.
virtual void output ()
 Called by the simulator to trigger periodical storage of measurement data.
 StatEvalProbeBus (const wns::pyconfig::View &)
virtual ~StatEvalProbeBus ()

Private Attributes

bool appendFlag
std::string filename
bool firstWrite
std::string outputPath
wns::evaluation::statistics::StatEvalInterfacestatEval


Detailed Description

The StatEvalProbeBus accepts values for a single ProbeID. Measurements that are received for the ProbID are put to the StatEval object. output triggers writing of the probe.

Author:
Daniel Bültmann <dbn@comnets.rwth-aachen.de>

Definition at line 49 of file StatEvalProbeBus.hpp.


Constructor & Destructor Documentation

StatEvalProbeBus::StatEvalProbeBus ( const wns::pyconfig::View pyco  ) 

Definition at line 42 of file StatEvalProbeBus.cpp.

StatEvalProbeBus::~StatEvalProbeBus (  )  [virtual]

Definition at line 55 of file StatEvalProbeBus.cpp.


Member Function Documentation

bool StatEvalProbeBus::accepts ( const wns::simulator::Time time,
const IContext context 
) [virtual]

Parameters:
time The current timestamp of the simulation
context The context of your measurement.

Implements wns::probe::bus::ProbeBus.

Definition at line 61 of file StatEvalProbeBus.cpp.

void StatEvalProbeBus::onMeasurement ( const wns::simulator::Time time,
const double measurement,
const IContext context 
) [virtual]

Parameters:
time The current timestamp of the simulation
measurement The measured value.
context The context of your measurement.

Implements wns::probe::bus::ProbeBus.

Definition at line 67 of file StatEvalProbeBus.cpp.

void StatEvalProbeBus::output (  )  [virtual]

Implements wns::probe::bus::ProbeBus.

Definition at line 75 of file StatEvalProbeBus.cpp.


Member Data Documentation

Definition at line 74 of file StatEvalProbeBus.hpp.

Definition at line 72 of file StatEvalProbeBus.hpp.

Definition at line 76 of file StatEvalProbeBus.hpp.

Definition at line 70 of file StatEvalProbeBus.hpp.

Definition at line 78 of file StatEvalProbeBus.hpp.


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

Generated on Sun May 27 03:33:02 2012 for openWNS by  doxygen 1.5.5