21 #include "execution_time_estimator_thread.h"
23 #include "estimators/config_estimator.h"
31 constexpr
char ExecutionTimeEstimatorsThread::cfg_prefix_[];
33 ExecutionTimeEstimatorsThread::ExecutionTimeEstimatorsThread()
34 : Thread(
"ExecutionTimeEstimatorThread", Thread::OPMODE_WAITFORWAKEUP),
35 AspectProviderAspect(&provider_inifin_),
36 provider_inifin_(&execution_time_estimator_manager_)
44 std::make_shared<fawkes::ConfigExecutionTimeEstimator>(
config, cfg_prefix_),
void init() override
Initialize the thread.
Configuration * config
This is the Configuration member used to access the configuration.
virtual int get_int_or_default(const char *path, const int &default_val)
Get value from configuration which is of type int, or the given default if the path does not exist.
void register_provider(std::shared_ptr< ExecutionTimeEstimator > provider, int priority=0)
Add an execution time provider.