Class PolicyConstraints

java.lang.Object
edu.tufts.hrilab.action.recovery.PolicyConstraints

public class PolicyConstraints extends Object
Constraints that define when a RecoveryPolicy is applicable.
  • Field Details

    • goals

      public Set<Predicate> goals
      The corresponding recovery policy is applicable to these goals. Can be empty (i.e., applies to all goals). Cannot be used at the same time as excludedGoals.
    • excludedGoals

      public Set<Predicate> excludedGoals
      The corresponding recovery policy is NOT applicable to these goals. Can be empty (i.e., applies to all goals). Cannot be used at the same time as goals.
    • failedActions

      public Set<Predicate> failedActions
      The corresponding recovery policy is applicable to these failed actions. Can be empty (i.e., applies to all failed actions). Cannot be used at the same time as excludedFailedActions.
    • excludedFailedActions

      public Set<Predicate> excludedFailedActions
      The corresponding recovery policy is NOT applicable to these failed actions. Can be empty (i.e., applies to all failed actions). Cannot be used at the same time as failedActions.
    • failureReasons

      public Set<Predicate> failureReasons
      The corresponding recovery policy is applicable to these failure reasons. Can be empty (i.e., applies to all failure reasons). Cannot be used at the same time as excludedFailureReasons. If an action failure has more than one failure reason, a single policy must handle all the failure reasons.
    • excludedFailureReasons

      public Set<Predicate> excludedFailureReasons
      The corresponding recovery policy is NOT applicable to these failure reasons. Can be empty (i.e., applies to all failure reasons). Cannot be used at the same time as failureReasons.
    • actionStatuses

      public Set<ActionStatus> actionStatuses
      The corresponding recovery policy is applicable to these action statuses. Can be empty (i.e., applies to all action statuses).
  • Constructor Details

    • PolicyConstraints

      public PolicyConstraints()