Fawkes API
Fawkes Development Version
|
21 #include "config_estimator.h"
23 #include <utils/misc/string_split.h>
39 const std::string &cfg_prefix)
57 != exec_times_.property_entries.end();
std::map< std::string, Skill >::const_iterator active_whitelist_entry_
Points to the whitelist entry that matches the skill to execute.
const std::map< std::string, Skill > whitelist_
Whitelist of skills that the estimator is allowed to process.
virtual bool can_execute(const Skill &skill)
Check if this estimator is both allowed and able to give an estimate for a given skill.
bool can_execute(const Skill &skill) override
Check if this estimator is both allowed and able to give an estimate for a given skill.
ConfigExecutionTimeEstimator(Configuration *config, const std::string &cfg_prefix)
Constructor.
bool can_provide_exec_time(const Skill &skill) const override
Check if this estimator can give an estimate for a given skill.
Configuration *const config_
Config to obtain common configurables.
T get_property(const Property< T > &property) const
Get the current property value for active_whitelist_entry_.
Interface for configuration handling.
A structured representation of a skill.
const std::string cfg_prefix_
Config prefix of the estimator.
Fawkes library namespace.
An abstract estimator for the execution time of a skill.
float get_execution_time(const Skill &skill) override
Get the estimated execution time for the given skill string.
const float speed_
Config estimator-specific speedup factor.
virtual bool exists(const char *path)=0
Check if a given value exists.