DUNE: Uniform Navigational Environment
2016.05.0
|
Class to handle each component's active time.
Public Types | |
typedef std::pair< const std::string, float > | ActiveTime |
typedef std::map< std::string, float > | ATMap |
typedef ATMap::const_iterator | const_iterator |
Public Member Functions | |
ComponentActiveTime (void) | |
~ComponentActiveTime (void) | |
void | addActiveTime (const std::string &id, float value) |
void | subtractActiveTime (const std::string &id, float value) |
float | getActiveTime (const std::string &id) const |
void | clear (void) |
const_iterator | begin (void) const |
const_iterator | end (void) const |
typedef std::pair<const std::string, float> Plan::Engine::ComponentActiveTime::ActiveTime |
Pair of string to float.
typedef std::map<std::string, float> Plan::Engine::ComponentActiveTime::ATMap |
Map of strings to floats.
typedef ATMap::const_iterator Plan::Engine::ComponentActiveTime::const_iterator |
Const iterator.
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
Add a component's active time to the list.
[in] | id | component name |
[in] | value | time active in seconds |
Referenced by Plan::Engine::ActionSchedule::fillComponentActiveTime().
|
inline |
First position of the vector.
Referenced by Plan::Engine::PreStatistics::fill().
|
inline |
Clear the contents.
Referenced by Plan::Engine::Plan::clear(), and Plan::Engine::ActionSchedule::fillComponentActiveTime().
|
inline |
Last position of the vector.
Referenced by Plan::Engine::PreStatistics::fill().
|
inline |
Get component's active time.
[in] | id | component name |
|
inline |
Subtract active time from a component.
[in] | id | component name |
[in] | value | time active to subtract in seconds |
Referenced by Plan::Engine::ActionSchedule::fillComponentActiveTime().