Fawkes API
Fawkes Development Version
|
A manager for execution time providers. More...
Public Member Functions | |
std::shared_ptr< ExecutionTimeEstimator > | get_provider (const std::string &skill_string) const |
Get the execution time provider for the given skill string. More... | |
void | register_provider (std::shared_ptr< ExecutionTimeEstimator > provider, int priority=0) |
Add an execution time provider. More... | |
void | unregister_provider (std::shared_ptr< ExecutionTimeEstimator > provider) |
Remove an execution time estimate provider. More... | |
A manager for execution time providers.
It stores prioritized providers, where the provider with the maximal priority is considered first.
Definition at line 31 of file execution_time_estimator.h.
std::shared_ptr< ExecutionTimeEstimator > fawkes::ExecutionTimeEstimatorManager::get_provider | ( | const std::string & | skill_string | ) | const |
Get the execution time provider for the given skill string.
skill_string | The string to get the execution time for |
IllegalArgumentException | if no provider for the given skill exists |
Definition at line 42 of file execution_time_estimator.cpp.
void fawkes::ExecutionTimeEstimatorManager::register_provider | ( | std::shared_ptr< ExecutionTimeEstimator > | provider, |
int | priority = 0 |
||
) |
Add an execution time provider.
provider | The provider to add |
priority | The priority of the new provider |
Definition at line 58 of file execution_time_estimator.cpp.
Referenced by ExecutionTimeEstimatorLookupEstimatorThread::init(), ExecutionTimeEstimatorNavgraphThread::init(), and ExecutionTimeEstimatorsThread::init().
void fawkes::ExecutionTimeEstimatorManager::unregister_provider | ( | std::shared_ptr< ExecutionTimeEstimator > | provider | ) |
Remove an execution time estimate provider.
provider | The provider to remove |
Definition at line 68 of file execution_time_estimator.cpp.
Referenced by ExecutionTimeEstimatorLookupEstimatorThread::finalize(), and ExecutionTimeEstimatorNavgraphThread::finalize().