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


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. | |
| PythonProbeBus (const wns::pyconfig::View &pyco) | |
| virtual | ~PythonProbeBus () |
Private Member Functions | |
| void | showdown (const std::string &reason) const |
Private Attributes | |
| wns::pyconfig::Object | pyAcceptsMethod_ |
| wns::pyconfig::View | pyco_ |
| wns::pyconfig::Object | pyOnMeasurementMethod_ |
| wns::pyconfig::Object | pyOutputMethod_ |
| bool | reportErrors_ |
PythonProbeBus does not do anything in its onMeasurement method. It is simply a gate that determines wether measurements are forwarded to its Observers or not.
If you only want to evaluate measurements for certain IDs plug the PythonProbeBus between the MasterProbeBus and a StatEvalProbeBus and provide the filtering criteria from within your configuration file.
Definition at line 60 of file PythonProbeBus.hpp.
| PythonProbeBus::PythonProbeBus | ( | const wns::pyconfig::View & | pyco | ) |
Definition at line 41 of file PythonProbeBus.cpp.
| PythonProbeBus::~PythonProbeBus | ( | ) | [virtual] |
Definition at line 52 of file PythonProbeBus.cpp.
| bool PythonProbeBus::accepts | ( | const wns::simulator::Time & | time, | |
| const IContext & | context | |||
| ) | [virtual] |
| void PythonProbeBus::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 57 of file PythonProbeBus.cpp.
| void PythonProbeBus::output | ( | ) | [virtual] |
| void PythonProbeBus::showdown | ( | const std::string & | reason | ) | const [private] |
Definition at line 138 of file PythonProbeBus.cpp.
Definition at line 86 of file PythonProbeBus.hpp.
Definition at line 84 of file PythonProbeBus.hpp.
Definition at line 88 of file PythonProbeBus.hpp.
Definition at line 90 of file PythonProbeBus.hpp.
Definition at line 92 of file PythonProbeBus.hpp.
1.5.5