public class StackElement
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
StackElement.FormulaArg |
static class |
StackElement.StackState |
Constructor and Description |
---|
StackElement(java.util.Map<java.lang.String,SumoProcessCollector> spcMap,
java.util.List<java.lang.String> args)
Instantiate a StackElement with a sumoProcess map and a list of formula args.
|
Modifier and Type | Method and Description |
---|---|
void |
argsInit(Formula formula,
java.util.List<java.lang.String> args)
Init the formulaArgs for this StackElement.
|
com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> |
getEntityProperties()
Getter and setter for translated field.
|
java.util.Map<java.lang.String,SumoProcessCollector> |
getSumoProcessMap() |
boolean |
getTranslated()
Getter and setter for translated field.
|
java.lang.String |
getTranslation() |
void |
setEntityProperties(com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> entityProperties) |
void |
setProcessPolarity(java.lang.String predicate,
VerbProperties.Polarity polarity)
Set the polarity of current stack element's process.
|
void |
setProcessPolarity(VerbProperties.Polarity polarity)
Set polarity.
|
void |
setTranslation(java.lang.String translation,
boolean translated)
Mark this stack element as having been translated.
|
public StackElement(java.util.Map<java.lang.String,SumoProcessCollector> spcMap, java.util.List<java.lang.String> args)
spcMap
- args
- public void argsInit(Formula formula, java.util.List<java.lang.String> args)
formula
- args
- public void setTranslation(java.lang.String translation, boolean translated)
translation
- translated
- public void setProcessPolarity(java.lang.String predicate, VerbProperties.Polarity polarity)
predicate
- polarity
- public void setProcessPolarity(VerbProperties.Polarity polarity)
polarity
- public boolean getTranslated()
public java.lang.String getTranslation()
public com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> getEntityProperties()
public void setEntityProperties(com.google.common.collect.Multimap<java.lang.String,SumoProcessEntityProperty> entityProperties)
public java.util.Map<java.lang.String,SumoProcessCollector> getSumoProcessMap()