DUNE: Uniform Navigational Environment  2016.05.0
Plan::Engine::PreStatistics Class Reference

Detailed Description

Class for handling pre-computed statistics.

Public Member Functions

 PreStatistics (IMC::PlanStatistics *msg)
 
void fill (const std::vector< IMC::PlanManeuver * > &nodes, const Timeline &tl)
 
void fill (const ComponentActiveTime &cat)
 
void fill (const FuelPrediction &fpred)
 
- 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
 

Constructor & Destructor Documentation

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

Constructor.

Parameters
[in]msgpointer to statistics message

References Plan::Engine::Statistics::m_ps.

Member Function Documentation

void Plan::Engine::PreStatistics::fill ( const std::vector< IMC::PlanManeuver * > &  nodes,
const Timeline tl 
)
inline
void Plan::Engine::PreStatistics::fill ( const ComponentActiveTime cat)
inline

Fill in actions.

Parameters
[in]catlist of times that components are active

References Plan::Engine::Statistics::addTuple(), Plan::Engine::ComponentActiveTime::begin(), Plan::Engine::ComponentActiveTime::end(), and Plan::Engine::Statistics::m_ps.

Collaboration diagram for Plan::Engine::PreStatistics:
Collaboration graph