Package com.tnsai.planning
Enum Class PlanningFailureException.Reason
- All Implemented Interfaces:
Serializable,Comparable<PlanningFailureException.Reason>,Constable
- Enclosing class:
PlanningFailureException
Why planning ended without a plan.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe same target precondition was reached with the same simulated state.A goal the plan set out to establish — unsatisfied when the plan was produced, and satisfied by the plan's declared effects — was not satisfied by the real@Stateonce the plan had executed.The configured recursion depth was exhausted on an acyclic branch.A planned step's precondition no longer held against freshly extracted state when execution reached it, so it was not executed.The bounded search expansion budget was exhausted.No action sequence reaches the goal; the search itself stayed sound. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PlanningFailureException.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNREACHABLE
No action sequence reaches the goal; the search itself stayed sound. -
CYCLIC_PRECONDITION
The same target precondition was reached with the same simulated state. -
MAX_DEPTH_EXCEEDED
The configured recursion depth was exhausted on an acyclic branch. -
SEARCH_BUDGET_EXCEEDED
The bounded search expansion budget was exhausted. -
PRECONDITION_STALE
A planned step's precondition no longer held against freshly extracted state when execution reached it, so it was not executed.- Since:
- 0.17.0
-
GOAL_UNSATISFIED_AFTER_EXECUTION
A goal the plan set out to establish — unsatisfied when the plan was produced, and satisfied by the plan's declared effects — was not satisfied by the real@Stateonce the plan had executed.A goal that was already satisfied when the plan was produced, or that the plan's declared effects never satisfy, is not reported here: the first was inherited rather than promised, and the second was never addressed, which is what a greedy planner leaves for its next cycle. The steps that ran keep their effects; the sensible response is to plan again from the state they left behind.
- Since:
- 0.17.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-