User Manual, Developers Guide and API Documentation

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

ProbeBus derivate that can create Table output.

#include <probe/bus/TableProbeBus.hpp>

Inheritance diagram for wns::probe::bus::TableProbeBus:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TableProbeBus (const wns::pyconfig::View &pyco)
virtual ~TableProbeBus ()
Implementation of wns::probe::bus::ProbeBus Interface


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

Private Attributes

std::vector< std::string > evals
 array of strings, describing what to evaluate, e.g. "mean", "variance", "trials", etc.
std::vector< std::string > formats
 array of strings identifying the desired output formats
std::string outfileBase
 basename to construct the output file names
std::string outputPath
 path for the output files
std::vector< detail::Sortersorters
 array of Sorters, one for each dimension of the Table
detail::StatEvalTablet
 The datastructure in which the actual evaluation is stored.


Detailed Description

Definition at line 42 of file TableProbeBus.hpp.


Constructor & Destructor Documentation

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

Definition at line 44 of file TableProbeBus.cpp.

TableProbeBus::~TableProbeBus (  )  [virtual]

Definition at line 71 of file TableProbeBus.cpp.


Member Function Documentation

bool TableProbeBus::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 122 of file TableProbeBus.cpp.

void TableProbeBus::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 111 of file TableProbeBus.cpp.

void TableProbeBus::output (  )  [virtual]

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

Definition at line 77 of file TableProbeBus.cpp.


Member Data Documentation

std::vector<std::string> wns::probe::bus::TableProbeBus::evals [private]

Definition at line 70 of file TableProbeBus.hpp.

std::vector<std::string> wns::probe::bus::TableProbeBus::formats [private]

Definition at line 72 of file TableProbeBus.hpp.

Definition at line 77 of file TableProbeBus.hpp.

Definition at line 75 of file TableProbeBus.hpp.

Definition at line 67 of file TableProbeBus.hpp.

Definition at line 80 of file TableProbeBus.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