Class CausalLink

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

public class CausalLink extends Object implements Partial
A causal link describes how the effect of an earlier step (the tail) satisfied the precondition of a later step (the head).
Author:
Stephen G. Ware
  • Field Details

    • tail

      public final PartialStep tail
      The earlier step
    • label

      public final Literal label
      The fact that is an effect of the tail and a precondition of the head
  • Constructor Details

    • CausalLink

      public CausalLink(PartialStep tail, Literal label, PartialStep head)
      Constructs a new causal link with the given tail, label, and head.
      Parameters:
      tail - the earlier step
      label - the fact established
      head - the later step
  • Method Details

    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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