1 #ifndef SIMPT_PAREX_EXPLORATION_TASK_H_
2 #define SIMPT_PAREX_EXPLORATION_TASK_H_
22 #include <boost/property_tree/ptree.hpp>
102 boost::property_tree::ptree
ToPtree()
const;
105 void setNodeThatContainsResult(
const std::string nodeIP,
int nodePort) {
106 m_node_ip=nodeIP; m_node_port=nodePort;
109 std::string getNodeIp()
const {
return m_node_ip;}
111 int getNodePort()
const {
return m_node_port; }
119 void ReadPtree(
const boost::property_tree::ptree& pt);
123 QDateTime m_start_time;
124 unsigned int m_running_time;
125 unsigned int m_tries;
127 std::string m_node_ip;
133 #endif // end-of-include-guard
virtual ~ExplorationTask()
Destructor.
TaskState
Enumeration describing the state of a single task of the exploration.
void IncrementTries()
Increment the tries of running the task.
The task is waiting to be sent for the first time.
TaskState GetState() const
Gets the state of the task.
boost::property_tree::ptree ToPtree() const
Convert the task to a ptree.
The task is being executed.
unsigned int GetNumberOfTries() const
Returns the number of tries.
unsigned int GetRunningTime() const
Returns the time the task has run.
ExplorationTask()
Constructs a task in 'Waiting' state.
void ChangeState(const TaskState &state)
Change the state of the task.
Contains information about task in an exploration.
Namespace for SimPT parameter explorer package.
The task was cancelled or stopped.