Go to the documentation of this file.
43 case ePlanningAborted:
44 return "ePlanningAborted";
47 return "ePlanningFailed";
52 case eRefinementAborted:
53 return "eRefinementAborted";
77 case ePlanningAborted:
79 case eRefinementAborted:
104 case ePlanningAborted:
105 case ePlanningFailed:
106 case eRefinementAborted:
111 case eTaskStatusSize:
127 return ePlanningAborted;
131 return eRefinementAborted;
134 case ePlanningFailed:
138 case ePlanningAborted:
139 case eRefinementAborted:
140 case eTaskStatusSize:
145 std::stringstream ss;
146 ss <<
"planningStatusTransitionAtKill: transition from " <<
toString(
status) <<
" is illegal";
147 throw std::invalid_argument {ss.str()};
155 return ePlanningFailed;
162 case ePlanningFailed:
166 case ePlanningAborted:
167 case eRefinementAborted:
168 case eTaskStatusSize:
173 std::stringstream ss;
174 ss <<
"planningStatusTransitionAtOutoftime: transition from " <<
toString(
status) <<
" is illegal";
175 throw std::invalid_argument {ss.str()};
189 case ePlanningFailed:
193 case ePlanningAborted:
194 case eRefinementAborted:
195 case eTaskStatusSize:
200 std::stringstream ss;
201 ss <<
"planningStatusTransitionAtDone: transition from " <<
toString(
status) <<
" is illegal";
202 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)