DUNE: Uniform Navigational Environment  2020.01.0
Plan::Engine::Statistics Class Reference

Public Member Functions

 Statistics (IMC::PlanStatistics *msg)
 
void setProperties (unsigned prop)
 

Protected Member Functions

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

IMC::PlanStatistics * m_ps
 

Constructor & Destructor Documentation

Plan::Engine::Statistics::Statistics ( IMC::PlanStatistics *  msg)
inline

Constructor.

Parameters
[in]msgpointer to statistics message

Member Function Documentation

void Plan::Engine::Statistics::addTuple ( std::string &  str,
const std::string &  name,
float  value,
unsigned  precision = 1 
)
inlineprotected

Add tuple with a floating point value.

Parameters
[in]strstring in which the tuple will be added
[in]namethe name of the tuple
[in]valuethe value of the tuple
[in]precisionnumber of decimal places when printing

Referenced by Plan::Engine::PreStatistics::fill(), Plan::Engine::RunTimeStatistics::fill(), Plan::Engine::RunTimeStatistics::fillCalib(), Plan::Engine::RunTimeStatistics::maneuverStopped(), and Plan::Engine::RunTimeStatistics::planStopped().

void Plan::Engine::Statistics::addTuple ( std::string &  str,
const std::string &  name,
const std::string &  value 
)
inlineprotected

Add tuple with a string value.

Parameters
[in]strstring in which the tuple will be added
[in]namethe name of the tuple
[in]valuethe value of the tuple
void Plan::Engine::Statistics::setProperties ( unsigned  prop)
inline

Fill in properties.

Parameters
[in]propproperties of the plan

References m_ps.

Referenced by Plan::Engine::Plan::getETA().

Member Data Documentation

Collaboration diagram for Plan::Engine::Statistics:
Collaboration graph