Class Constant

java.lang.Object
edu.tufts.hrilab.fol.Symbol
edu.tufts.hrilab.fol.Constant
All Implemented Interfaces:
Serializable, Cloneable

public class Constant extends Symbol implements Cloneable, Serializable
Representation of constant logical form.
See Also:
  • Constructor Details

  • Method Details

    • getValue

      public Object getValue()
    • clone

      public Constant clone()
      Overrides:
      clone in class Symbol
    • equalsIgnoreType

      public boolean equalsIgnoreType(Object o)
      Compare without checking semantic type information.
      Overrides:
      equalsIgnoreType in class Symbol
      Parameters:
      o -
      Returns:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Symbol
    • isConstant

      public boolean isConstant()
      Overrides:
      isConstant in class Symbol