Class PartialStep

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

public class PartialStep extends Object implements Partial
This class represents a step in a partial plan. A partial step is like an Operator because it has parameters, and like a Step because those parameters will eventually all be ground in specific values from the bindings of a partial plan.
Author:
Stephen G. Ware
  • Field Details

    • operator

      public final Operator operator
      The operator of which this step is an instance (or null if this step is not an instance of any operator)
    • parameters

      public final ImmutableArray<Variable> parameters
      All the variables used in this step
    • preconditions

      public final ImmutableArray<Literal> preconditions
      An array of this step's preconditions
    • effects

      public final ImmutableArray<Literal> effects
      An array of this step's effects
  • Constructor Details

    • PartialStep

      public PartialStep(Operator operator)
      Constructs a partial step from an Operator (a step template).
      Parameters:
      operator - the operator of which this step will be an instance
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.
      Specified by:
      toString in interface Partial
      Parameters:
      substitution - a substitution which may contain values for variabels used in this object
      Returns:
      a string
    • makeStep

      public Step makeStep(Substitution substitution)
      Given a substitution that specific values for all of this step's parameters, this method will return the Step object that this object represents.
      Parameters:
      substitution - a substitution containing values for all of this step's parameters
      Returns:
      a step