Go to the documentation of this file.
44 case ePlanningAborted:
45 return "ePlanningAborted";
48 return "ePlanningFailed";
53 case eRefinementAborted:
54 return "eRefinementAborted";
79 case ePlanningAborted:
81 case eRefinementAborted:
107 case ePlanningAborted:
108 case ePlanningFailed:
109 case eRefinementAborted:
114 case eTaskStatusSize:
131 return ePlanningAborted;
135 return eRefinementAborted;
138 case ePlanningFailed:
142 case ePlanningAborted:
143 case eRefinementAborted:
144 case eTaskStatusSize:
149 std::stringstream ss;
150 ss <<
"planningStatusTransitionAtKill: transition from " <<
toString(
status)
152 throw std::invalid_argument{ss.str()};
161 return ePlanningFailed;
168 case ePlanningFailed:
172 case ePlanningAborted:
173 case eRefinementAborted:
174 case eTaskStatusSize:
179 std::stringstream ss;
180 ss <<
"planningStatusTransitionAtOutoftime: transition from " <<
toString(
status)
182 throw std::invalid_argument{ss.str()};
197 case ePlanningFailed:
201 case ePlanningAborted:
202 case eRefinementAborted:
203 case eTaskStatusSize:
208 std::stringstream ss;
209 ss <<
"planningStatusTransitionAtDone: transition from " <<
toString(
status)
211 throw std::invalid_argument{ss.str()};
Status transitionAtKill(Status status)
Performs a transition from the given to the appropiate following status in case of a task kill.
std::string toString(Status status)
Returns the given task status as a string.
Status transitionAtOutoftime(Status status)
Performs a transition from the given to the appropiate following status in case of the task failing.
Status transitionAtDone(Status status)
Performs a transition from the given to the appropiate following status in case the task is done.
bool finishedRunning(Status status)
Returns whether the given task status describes a state where planning is done (may be failed).
bool isRunning(Status status)
Returns whether the given task status describes a state where a path is planned.
const std::string & to_string(const std::string &s)