1 #ifndef SIMPT_PAREX_PARAMETER_EXPLORATION_H_
2 #define SIMPT_PAREX_PARAMETER_EXPLORATION_H_
43 const boost::property_tree::ptree& preferences);
83 virtual std::vector<std::string>
GetValues(
unsigned int index)
const;
119 const std::list<std::pair<std::string, ISweep*>>&
GetSweeps()
const {
return m_sweeps; }
148 virtual boost::property_tree::ptree
ToPtree()
const;
156 virtual void ReadPtree(
const boost::property_tree::ptree& pt);
159 boost::property_tree::ptree m_original;
160 std::list<std::pair<std::string, ISweep*>> m_sweeps;
165 #endif // end-of-include-guard
virtual std::vector< std::string > GetPossibleParameters() const
Returns all the possible parameters for the exploration.
Interface for Exploration.
virtual unsigned int GetNumberOfTasks() const
Returns the number of tasks the exploration currently contains.
const ISweep * GetSweep(const std::string ¶meter) const
Returns the sweep associated with the given parameter.
ParameterExploration(const std::string &name, const boost::property_tree::ptree &original, const boost::property_tree::ptree &preferences)
Constructor.
An interface class for a parameter sweep.
virtual std::vector< std::string > GetParameters() const
Returns all the parameters in the exploration.
virtual boost::property_tree::ptree ToPtree() const
Convert the exploration to a ptree.
void SetSweep(const std::string ¶meter, ISweep *sweep)
Set a sweep for the given parameter.
virtual std::vector< std::string > GetValues(unsigned int index) const
Return the values of a certain task.
virtual ~ParameterExploration()
Destructor.
ParameterExploration & operator=(const ParameterExploration &other)
Assignment operator.
Namespace for SimPT parameter explorer package.
virtual SimTask * CreateTask(unsigned int index) const
Creates a task with the parameters on the given index.
const std::list< std::pair< std::string, ISweep * > > & GetSweeps() const
Returns all the sweeps.
Contains all information needed for a transmitable simulation task.
std::string GetOriginalValue(const std::string ¶meter) const
Returns the original value of the parameter.
Class describing a parameter exploration and its simulation tasks.
Class describing a generic exploration.
void RemoveSweep(const std::string ¶meter)
Removes the sweep (if any) for the given parameter.
virtual ParameterExploration * Clone() const
Clone function.