1 #ifndef SIMPT_PAREX_EXPLORATION_PROGRESS_H_
2 #define SIMPT_PAREX_EXPLORATION_PROGRESS_H_
95 const std::list<unsigned int>&
GetRunningTasks()
const {
return m_running_tasks; }
153 boost::property_tree::ptree
ToPtree()
const;
182 void ReadPtree(
const boost::property_tree::ptree& pt);
186 std::list<unsigned int> m_send_queue;
187 std::vector<ExplorationTask> m_tasks;
188 std::map<TaskState, unsigned int> m_task_counts;
189 std::list<unsigned int> m_running_tasks;
191 static const unsigned int g_max_tries = 3;
196 #endif // end-of-include-guard
TaskState
Enumeration describing the state of a single task of the exploration.
bool IsFinished() const
Return true if the exploration has finished.
ExplorationProgress(const Exploration *exploration)
Constructor.
Interface for ExplorationTask.
A container class for the final result of a simulation.
Class describing the progress state of an exploration.
boost::property_tree::ptree ToPtree() const
Convert the exploration and progress to a ptree.
void GiveBack(const SimTask *task)
Give a task back to exploration (when it could not have been sent).
void ResendCancelledTask(unsigned int id)
Resends a cancelled task.
void Updated()
Signal called when Exploration has changed.
unsigned int GetTaskCount(const TaskState &state) const
Returns the number of tasks with the specified state.
virtual ~ExplorationProgress()
Destructor.
void HandleResult(const SimResult &result)
Handles the result of a simulation task.
SimTask * NextTask()
Return the next task ready to be simulated.
Contains information about task in an exploration.
const ExplorationTask & GetTask(unsigned int id) const
Returns the state of the task with the specified id.
Namespace for SimPT parameter explorer package.
const Exploration & GetExploration() const
Returns the exploration of this object.
Contains all information needed for a transmitable simulation task.
see the online Qt documentation
Class describing a generic exploration.
void CancelWaitingTask(unsigned int id)
Cancels a waiting task.
const std::list< unsigned int > & GetRunningTasks() const
Returns the running tasks.