FAtiMA.Core.wellFormedNames.IGroundable, java.io.Serializable, java.lang.Cloneablepublic class EmotionalEpisodeCondition
extends FAtiMA.Core.conditions.Condition
| Modifier and Type | Field | Description |
|---|---|---|
protected FAtiMA.Core.wellFormedNames.Symbol |
_emotion |
|
protected float |
_value |
| Constructor | Description |
|---|---|
EmotionalEpisodeCondition(FAtiMA.Core.wellFormedNames.Symbol episode,
FAtiMA.Core.wellFormedNames.Symbol emotion,
float value) |
|
EmotionalEpisodeCondition(EmotionalEpisodeCondition eec) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
CheckCondition(FAtiMA.Core.AgentModel am) |
Checks if the
|
java.lang.Object |
clone() |
Clones this EmotionCondition, returning an equal copy.
|
java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> |
GetValidBindings(FAtiMA.Core.AgentModel am) |
This method finds all the possible sets of Substitutions that applied to
the condition will make it valid (true) according to the agent's
EmotionalState
|
FAtiMA.Core.wellFormedNames.Name |
GetValue() |
|
protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> |
GetValueBindings(FAtiMA.Core.AgentModel am) |
|
boolean |
isGrounded() |
|
void |
MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) |
Applies a set of substitutions to the object, grounding it.
|
void |
MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) |
Applies a set of substitutions to the object, grounding it.
|
static EmotionalEpisodeCondition |
ParseEmotionalEpisodeCondition(org.xml.sax.Attributes attributes) |
Parses a EmotionCondition given a XML attribute list
|
void |
ReplaceUnboundVariables(int variableID) |
Replaces all unbound variables in the object by applying a numeric
identifier to each one.
|
protected FAtiMA.Core.wellFormedNames.Symbol _emotion
protected float _value
public EmotionalEpisodeCondition(FAtiMA.Core.wellFormedNames.Symbol episode,
FAtiMA.Core.wellFormedNames.Symbol emotion,
float value)
public EmotionalEpisodeCondition(EmotionalEpisodeCondition eec)
public static EmotionalEpisodeCondition ParseEmotionalEpisodeCondition(org.xml.sax.Attributes attributes) throws FAtiMA.Core.exceptions.InvalidEmotionTypeException
attributes - - A list of XMl attributesFAtiMA.Core.exceptions.InvalidEmotionTypeExceptionpublic boolean CheckCondition(FAtiMA.Core.AgentModel am)
CheckCondition in class FAtiMA.Core.conditions.Conditionpublic java.lang.Object clone()
clone in class FAtiMA.Core.conditions.Conditionpublic java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am)
GetValidBindings in class FAtiMA.Core.conditions.ConditionEmotionalStatepublic FAtiMA.Core.wellFormedNames.Name GetValue()
GetValue in class FAtiMA.Core.conditions.Conditionprotected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am)
GetValueBindings in class FAtiMA.Core.conditions.Conditionpublic boolean isGrounded()
isGrounded in interface FAtiMA.Core.wellFormedNames.IGroundableisGrounded in class FAtiMA.Core.conditions.Conditionpublic void MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundableMakeGround in class FAtiMA.Core.conditions.Conditionbindings - - A list of substitutions of the type "[Variable]/value"Substitutionpublic void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundableMakeGround in class FAtiMA.Core.conditions.Conditionsubst - - a substitution of the type "[Variable]/value"Substitutionpublic void ReplaceUnboundVariables(int variableID)
ReplaceUnboundVariables in interface FAtiMA.Core.wellFormedNames.IGroundableReplaceUnboundVariables in class FAtiMA.Core.conditions.ConditionvariableID - - the identifier to be applied