1 #ifndef SIMPT_PAREX_EXPLORATION_H_
2 #define SIMPT_PAREX_EXPLORATION_H_
24 #include <boost/property_tree/ptree.hpp>
41 Exploration(
const std::string& name,
const boost::property_tree::ptree& preferences);
74 void SetName(
const std::string& name) { m_name = name; }
79 const std::string&
GetName()
const {
return m_name; }
84 const boost::property_tree::ptree&
GetPreferences()
const {
return m_preferences; };
96 virtual std::vector<std::string>
GetValues(
unsigned int index)
const = 0;
118 virtual boost::property_tree::ptree
ToPtree()
const;
125 virtual void ReadPtree(
const boost::property_tree::ptree& pt);
129 boost::property_tree::ptree m_preferences;
134 #endif // end-of-include-guard
void SetName(const std::string &name)
Changes the name of the exploration.
virtual unsigned int GetNumberOfTasks() const =0
Returns the number of tasks the exploration currently contains.
virtual ~Exploration()
Destructor.
virtual std::vector< std::string > GetValues(unsigned int index) const =0
Return the values of a certain task.
Exploration(const std::string &name, const boost::property_tree::ptree &preferences)
Constructor.
virtual Exploration * Clone() const =0
Clone function.
virtual boost::property_tree::ptree ToPtree() const
Convert the exploration to a ptree.
virtual std::vector< std::string > GetParameters() const =0
Returns all the parameters in the exploration.
virtual SimTask * CreateTask(unsigned int index) const =0
Creates a task with the parameters on the given index.
const std::string & GetName() const
Returns the name of the exploration.
Exploration & operator=(const Exploration &other)
Assignment operator.
const boost::property_tree::ptree & GetPreferences() const
Returns the preferences of the exploration.
Namespace for SimPT parameter explorer package.
Contains all information needed for a transmitable simulation task.
Class describing a generic exploration.