Fawkes API Fawkes Development Version
fawkes::ExecutionTimeEstimator::Skill Class Reference

A structured representation of a skill. More...

#include <execution_time_estimator.h>

Public Member Functions

 Skill (const std::string &skill_string)
 Constructor. More...
 
bool matches (const Skill &skill) const
 Check, whether the skill matches another skill description. More...
 

Public Attributes

std::string skill_name = ""
 The name of the skill. More...
 
std::unordered_map< std::string, std::string > skill_args = {}
 A map of the skill's argument keys to argument values. More...
 

Detailed Description

A structured representation of a skill.

Definition at line 38 of file execution_time_estimator.h.

Constructor & Destructor Documentation

◆ Skill()

Skill::Skill ( const std::string &  skill_string)

Constructor.

Create a skill from the skill string.

Parameters
skill_stringThe skill string to create the skill object from.

Definition at line 150 of file execution_time_estimator.cpp.

References skill_name.

Member Function Documentation

◆ matches()

bool Skill::matches ( const Skill other) const

Check, whether the skill matches another skill description.

Parameters
otherThe skill description that should be matched
Returns
true if all skill args in other are contained in the args of this skill and the skill names match

Definition at line 173 of file execution_time_estimator.cpp.

References skill_args, and skill_name.

Member Data Documentation

◆ skill_args

std::unordered_map<std::string, std::string> fawkes::ExecutionTimeEstimator::Skill::skill_args = {}

◆ skill_name

std::string fawkes::ExecutionTimeEstimator::Skill::skill_name = ""

The documentation for this class was generated from the following files: