![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <probe/bus/TextProbeBus.hpp>


Public Member Functions | |
| void | printText (std::ostream &theStream) |
| void | putText (std::string message) |
| TextProbeBus (const wns::pyconfig::View &pyco) | |
| virtual | ~TextProbeBus () |
Implementation of wns::probe::bus::ProbeBus Interface | |
| 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 &aValue, const IContext ®) |
| Called to actually process the measurement. | |
| virtual void | output () |
| Called by the simulator to trigger periodical storage of measurement data. | |
Private Attributes | |
| std::string | description_ |
| bool | isJSON_ |
| std::string | jsonEntrySeparator_ |
| std::string | key_ |
| Key to listen for. | |
| std::list< std::string > | messages_ |
| std::string | name_ |
| int | numCalls_ |
| std::string | outfileBase_ |
| basename to construct the output file names | |
| std::string | outputPath_ |
| path for the output files | |
| bool | prependSimTimeFlag_ |
| int | simTimePrecision_ |
| int | simTimeWidth_ |
| int | skipInterval_ |
| bool | writeHeader_ |
| Wether to write the file header. | |
Definition at line 42 of file TextProbeBus.hpp.
| TextProbeBus::TextProbeBus | ( | const wns::pyconfig::View & | pyco | ) |
Definition at line 44 of file TextProbeBus.cpp.
| TextProbeBus::~TextProbeBus | ( | ) | [virtual] |
Definition at line 59 of file TextProbeBus.cpp.
| bool TextProbeBus::accepts | ( | const wns::simulator::Time & | time, | |
| const IContext & | context | |||
| ) | [virtual] |
| void TextProbeBus::onMeasurement | ( | const wns::simulator::Time & | time, | |
| const double & | measurement, | |||
| const IContext & | context | |||
| ) | [virtual] |
| 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 100 of file TextProbeBus.cpp.
| void TextProbeBus::output | ( | ) | [virtual] |
| void TextProbeBus::printText | ( | std::ostream & | theStream | ) |
Definition at line 113 of file TextProbeBus.cpp.
| void TextProbeBus::putText | ( | std::string | message | ) |
Definition at line 187 of file TextProbeBus.cpp.
std::string wns::probe::bus::TextProbeBus::description_ [private] |
Definition at line 91 of file TextProbeBus.hpp.
bool wns::probe::bus::TextProbeBus::isJSON_ [private] |
Definition at line 81 of file TextProbeBus.hpp.
std::string wns::probe::bus::TextProbeBus::jsonEntrySeparator_ [private] |
Definition at line 99 of file TextProbeBus.hpp.
std::string wns::probe::bus::TextProbeBus::key_ [private] |
Definition at line 73 of file TextProbeBus.hpp.
std::list<std::string> wns::probe::bus::TextProbeBus::messages_ [private] |
Definition at line 93 of file TextProbeBus.hpp.
std::string wns::probe::bus::TextProbeBus::name_ [private] |
Definition at line 89 of file TextProbeBus.hpp.
int wns::probe::bus::TextProbeBus::numCalls_ [private] |
Definition at line 97 of file TextProbeBus.hpp.
std::string wns::probe::bus::TextProbeBus::outfileBase_ [private] |
Definition at line 77 of file TextProbeBus.hpp.
std::string wns::probe::bus::TextProbeBus::outputPath_ [private] |
Definition at line 75 of file TextProbeBus.hpp.
Definition at line 83 of file TextProbeBus.hpp.
Definition at line 85 of file TextProbeBus.hpp.
Definition at line 87 of file TextProbeBus.hpp.
Definition at line 95 of file TextProbeBus.hpp.
Definition at line 79 of file TextProbeBus.hpp.
1.5.5