User Manual, Developers Guide and API Documentation

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

A logger for the ProbeBus. More...

#include <probe/bus/LoggingProbeBus.hpp>

Inheritance diagram for wns::probe::bus::LoggingProbeBus:

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

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.
 LoggingProbeBus (const wns::pyconfig::View &)
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.
virtual ~LoggingProbeBus ()

Private Attributes

wns::logger::Logger logger_


Detailed Description

Attach the LoggingProbeBus to another ProbeBus to see the Measurements that pass that ProbeBus. The measurements are printed to std::out. Use this for debugging purposes.

Author:
Daniel Bültmann <me@daniel-bueltmann.de>

Definition at line 47 of file LoggingProbeBus.hpp.


Constructor & Destructor Documentation

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

Definition at line 40 of file LoggingProbeBus.cpp.

LoggingProbeBus::~LoggingProbeBus (  )  [virtual]

Definition at line 45 of file LoggingProbeBus.cpp.


Member Function Documentation

bool LoggingProbeBus::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 50 of file LoggingProbeBus.cpp.

void LoggingProbeBus::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 56 of file LoggingProbeBus.cpp.

void LoggingProbeBus::output (  )  [virtual]

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

Definition at line 75 of file LoggingProbeBus.cpp.


Member Data Documentation

Definition at line 66 of file LoggingProbeBus.hpp.


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

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