1 #ifndef SIMPT_PAREX_EXPLORATION_MANAGER_H_
2 #define SIMPT_PAREX_EXPLORATION_MANAGER_H_
25 #include <unordered_map>
31 class ExplorationProgress;
33 class WorkerRepresentative;
84 void StopTask(
const std::string &name,
int id);
94 void NewWorkerAvailable();
96 void WorkerDisconnected();
98 void WorkerFinished();
107 bool WorkAvailable();
110 ExplorationProgress *GetExploration(
const std::string &name,
const std::deque<ExplorationProgress*>&);
113 void RemoveExploration(
const std::string &name, std::deque<ExplorationProgress*>&);
116 std::deque<ExplorationProgress*> m_running_explorations;
117 std::deque<ExplorationProgress*> m_done_explorations;
118 std::map<WorkerRepresentative*, SimTask*> m_running_tasks;
124 #endif // end-of-include-guard
std::vector< std::string > GetExplorationNames()
Get a list of all registered explorations.
Class describing the progress state of an exploration.
void RegisterExploration(const Exploration *exploration)
Request that the exploration will be simulated somewhere.
void RestartTask(const std::string &name, int id)
Resend a specific task that has been stopped.
Collects all explorations and works with WorkerPool to actually execute them.
void DeleteExploration(const std::string &name)
Delete a given Exploration.
Namespace for SimPT parameter explorer package.
see the online Qt documentation
Class describing a generic exploration.
const ExplorationProgress * GetExplorationProgress(const std::string &explorationName)
Lookup the exploration by name.
void Updated()
Emitted whenever a change to an exploration is done.
virtual ~ExplorationManager()
Destructor.
A worker taken as representative for multiple workers (handles the communication with the node)...
void StopTask(const std::string &name, int id)
Stop a node from runnning a specific task.
ExplorationManager()
Constructor.