DUNE: Uniform Navigational Environment
2020.01.0
|
Class for handling run time statistics.
Public Member Functions | |
RunTimeStatistics (IMC::PlanStatistics *msg) | |
void | clear (void) |
void | fill (const FuelPrediction &fpred) |
void | fillCalib (float time) |
void | planStarted (void) |
void | planStopped (void) |
void | maneuverStarted (const std::string &id) |
void | maneuverStopped (void) |
Public Member Functions inherited from Plan::Engine::Statistics | |
Statistics (IMC::PlanStatistics *msg) | |
void | setProperties (unsigned prop) |
Additional Inherited Members | |
Protected Member Functions inherited from Plan::Engine::Statistics | |
void | addTuple (std::string &str, const std::string &name, float value, unsigned precision=1) |
void | addTuple (std::string &str, const std::string &name, const std::string &value) |
Protected Attributes inherited from Plan::Engine::Statistics | |
IMC::PlanStatistics * | m_ps |
|
inline |
Constructor.
[in] | msg | pointer to statistics message |
References Plan::Engine::Statistics::m_ps.
|
inline |
Clear the message.
References Plan::Engine::Statistics::m_ps.
Referenced by Plan::Engine::Plan::planStarted().
|
inline |
Fill in with fuel info.
[in] | fpred | fuel prediction object |
References Plan::Engine::Statistics::addTuple(), Plan::Engine::FuelPrediction::getPredictionError(), Plan::Engine::FuelPrediction::isFuelValid(), and Plan::Engine::Statistics::m_ps.
Referenced by Plan::Engine::Plan::planStopped().
|
inline |
Fill in calibration time.
[in] | time | calibration total time |
References Plan::Engine::Statistics::addTuple(), and Plan::Engine::Statistics::m_ps.
Referenced by Plan::Engine::Plan::updateCalibration().
|
inline |
Flag a maneuver as starting.
[in] | id | name of the maneuver that is starting |
Referenced by Plan::Engine::Plan::maneuverStarted().
|
inline |
Flag a maneuver as stopped.
References Plan::Engine::Statistics::addTuple(), and Plan::Engine::Statistics::m_ps.
Referenced by Plan::Engine::Plan::maneuverDone().
|
inline |
Flag the plan as started.
Referenced by Plan::Engine::Plan::planStarted().
|
inline |
Flag the plan as stopped.
References Plan::Engine::Statistics::addTuple(), and Plan::Engine::Statistics::m_ps.
Referenced by Plan::Engine::Plan::planStopped().