Class OpenPreconditionFlaw

java.lang.Object
edu.uky.ai.planning.ps.Flaw
edu.uky.ai.planning.ps.OpenPreconditionFlaw
All Implemented Interfaces:
Partial

public class OpenPreconditionFlaw extends Flaw
An open precondition flaw indicates that a partial plan has not yet guaranteed that some precondition of some step will be satisfied.
Author:
Stephen G. Ware
  • Field Details

    • step

      public final PartialStep step
      The step for which some precondition has not been satisfied
    • precondition

      public final Literal precondition
      The precondition of the step that needs to be satisfied
  • Constructor Details

    • OpenPreconditionFlaw

      public OpenPreconditionFlaw(PartialStep step, Literal precondition)
      Constructs a new open precondition flaw for a given step and precondition.
      Parameters:
      step - the step for which a precondition has not yet been satisfied
      precondition - the precondition of the step which needs to be satisfied
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Flaw
    • toString

      public String toString(Substitution substitution)
      Description copied from interface: Partial
      Returns a string representation of this object in which all variables which have values in the given substitution have been replaced with those values.
      Parameters:
      substitution - a substitution which may contain values for variabels used in this object
      Returns:
      a string