Class Step

java.lang.Object
edu.uky.ai.planning.Step
All Implemented Interfaces:
Comparable<Step>

public class Step extends Object implements Comparable<Step>
A step is a single ground action in a plan which changes the world's state.
Author:
Stephen G. Ware
  • Field Details

    • name

      public final String name
      The name of the step
    • precondition

      public final Proposition precondition
      What must be true before the step can be taken
    • effect

      public final Proposition effect
      What becomes true after the step has been taken
  • Constructor Details

    • Step

      public Step(String name, Proposition precondition, Proposition effect)
      Constructs a new step.
      Parameters:
      name - the name of the step
      precondition - the precondition (must be ground)
      effect - the effect (must be ground)
      Throws:
      IllegalArgumentException - if either the precodition or effect are not ground
  • Method Details