Package com.articulate.sigma.nlg
Class StackElement
java.lang.Object
com.articulate.sigma.nlg.StackElement
One element of a LanguageFormatterStack.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionStackElement(Map<String, SumoProcessCollector> spcMap, List<String> args) Instantiate a StackElement with a sumoProcess map and a list of formula args. -
Method Summary
Modifier and TypeMethodDescriptionvoidInit the formulaArgs for this StackElement.com.google.common.collect.Multimap<String, SumoProcessEntityProperty> Getter and setter for translated field.booleanGetter and setter for translated field.voidsetEntityProperties(com.google.common.collect.Multimap<String, SumoProcessEntityProperty> entityProperties) voidsetProcessPolarity(VerbProperties.Polarity polarity) Set polarity.voidsetProcessPolarity(String predicate, VerbProperties.Polarity polarity) Set the polarity of current stack element's process.voidsetTranslation(String translation, boolean translated) Mark this stack element as having been translated.
-
Constructor Details
-
StackElement
Instantiate a StackElement with a sumoProcess map and a list of formula args.- Parameters:
spcMap-args-
-
-
Method Details
-
argsInit
Init the formulaArgs for this StackElement. The formula parameter is used to set valid formulaArgs to states other than UNPROCESSED.- Parameters:
formula-args-
-
setTranslation
Mark this stack element as having been translated.- Parameters:
translation-translated-
-
setProcessPolarity
Set the polarity of current stack element's process.- Parameters:
predicate-polarity-
-
setProcessPolarity
Set polarity.- Parameters:
polarity-
-
getTranslated
public boolean getTranslated()Getter and setter for translated field.- Returns:
-
getTranslation
-
getEntityProperties
Getter and setter for translated field.- Returns:
-
setEntityProperties
public void setEntityProperties(com.google.common.collect.Multimap<String, SumoProcessEntityProperty> entityProperties) -
getSumoProcessMap
- Returns:
-