Enum Class PlanningFailureException.Reason

java.lang.Object
java.lang.Enum<PlanningFailureException.Reason>
com.tnsai.planning.PlanningFailureException.Reason
All Implemented Interfaces:
Serializable, Comparable<PlanningFailureException.Reason>, Constable
Enclosing class:
PlanningFailureException

public static enum PlanningFailureException.Reason extends Enum<PlanningFailureException.Reason>
Why planning ended without a plan.
  • Enum Constant Details

    • UNREACHABLE

      public static final PlanningFailureException.Reason UNREACHABLE
      No action sequence reaches the goal; the search itself stayed sound.
    • CYCLIC_PRECONDITION

      public static final PlanningFailureException.Reason CYCLIC_PRECONDITION
      The same target precondition was reached with the same simulated state.
    • MAX_DEPTH_EXCEEDED

      public static final PlanningFailureException.Reason MAX_DEPTH_EXCEEDED
      The configured recursion depth was exhausted on an acyclic branch.
    • SEARCH_BUDGET_EXCEEDED

      public static final PlanningFailureException.Reason SEARCH_BUDGET_EXCEEDED
      The bounded search expansion budget was exhausted.
    • PRECONDITION_STALE

      public static final PlanningFailureException.Reason 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

      public static final PlanningFailureException.Reason 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 @State once 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

      public static PlanningFailureException.Reason[] 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

      public static PlanningFailureException.Reason valueOf(String name)
      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 name
      NullPointerException - if the argument is null