Class StackElement

java.lang.Object
com.articulate.sigma.nlg.StackElement

public class StackElement extends Object
One element of a LanguageFormatterStack.
  • Constructor Details

    • StackElement

      public StackElement(Map<String,SumoProcessCollector> spcMap, List<String> args)
      Instantiate a StackElement with a sumoProcess map and a list of formula args.
      Parameters:
      spcMap -
      args -
  • Method Details

    • argsInit

      public void argsInit(Formula formula, List<String> args)
      Init the formulaArgs for this StackElement. The formula parameter is used to set valid formulaArgs to states other than UNPROCESSED.
      Parameters:
      formula -
      args -
    • setTranslation

      public void setTranslation(String translation, boolean translated)
      Mark this stack element as having been translated.
      Parameters:
      translation -
      translated -
    • setProcessPolarity

      public void setProcessPolarity(String predicate, VerbProperties.Polarity polarity)
      Set the polarity of current stack element's process.
      Parameters:
      predicate -
      polarity -
    • setProcessPolarity

      public void setProcessPolarity(VerbProperties.Polarity polarity)
      Set polarity.
      Parameters:
      polarity -
    • getTranslated

      public boolean getTranslated()
      Getter and setter for translated field.
      Returns:
    • getTranslation

      public String getTranslation()
    • getEntityProperties

      public com.google.common.collect.Multimap<String,SumoProcessEntityProperty> getEntityProperties()
      Getter and setter for translated field.
      Returns:
    • setEntityProperties

      public void setEntityProperties(com.google.common.collect.Multimap<String,SumoProcessEntityProperty> entityProperties)
    • getSumoProcessMap

      public Map<String,SumoProcessCollector> getSumoProcessMap()
      Returns: