Class CachedUtterance

java.lang.Object
edu.tufts.hrilab.slug.parsing.cache.CachedUtterance

public class CachedUtterance extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public UtteranceType getType()
      Retrieves the UtteranceType based on the stored String value.
      Returns:
      The UtteranceType corresponding to the stored type value.
    • getSemantics

      public Predicate getSemantics()
      Retrieves the Predicate representing semantics.
      Returns:
      The Predicate representing semantics.
    • getIndirectSemantics

      public List<Term> getIndirectSemantics()
      Retrieves a list of Terms representing indirect semantics.
      Returns:
      A list of Terms representing indirect semantics.
    • getBindings

      public List<Map<Variable,Symbol>> getBindings()
      Retrieves a list of bindings represented as maps of Variable to Symbol.
      Returns:
      A list of bindings represented as maps of Variable to Symbol.
    • toJSON

      public String toJSON()
      Converts the object to its JSON representation.
      Returns:
      The JSON representation of the object.
    • fromJSON

      public static CachedUtterance fromJSON(String json)
      Constructs a CachedUtterance object from its JSON representation.
      Parameters:
      json - The JSON string representing the CachedUtterance object.
      Returns:
      The CachedUtterance object constructed from the JSON representation.