Package FAtiMA.socialRelations
Class LikeCondition
- java.lang.Object
-
- FAtiMA.Core.conditions.Condition
-
- FAtiMA.socialRelations.LikeCondition
-
- All Implemented Interfaces:
FAtiMA.Core.wellFormedNames.IGroundable,java.io.Serializable,java.lang.Cloneable
public class LikeCondition extends FAtiMA.Core.conditions.ConditionRepresents a Like Relation that needs to be fullfiled in order to trigger the condition. The xml should be defined as, for example, by default: . A target must be a character; The value must be an integer in the range [-10;10]; Operator can be one of the following < <= = >= > != - Author:
- nafonso
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLikeCondition(FAtiMA.Core.wellFormedNames.Symbol subject, FAtiMA.Core.wellFormedNames.Symbol target, FAtiMA.Core.wellFormedNames.Symbol value, FAtiMA.socialRelations.LikeCondition.Operator op)protectedLikeCondition(LikeCondition lC)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanCheckCondition(FAtiMA.Core.AgentModel am)java.lang.Objectclone()java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>GetValidBindings(FAtiMA.Core.AgentModel am)FAtiMA.Core.wellFormedNames.NameGetValue()protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution>GetValueBindings(FAtiMA.Core.AgentModel am)booleanisGrounded()voidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)voidMakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)static LikeConditionParseSocialCondition(org.xml.sax.Attributes attributes)voidReplaceUnboundVariables(int variableID)java.lang.StringtoString()
-
-
-
Constructor Detail
-
LikeCondition
protected LikeCondition(FAtiMA.Core.wellFormedNames.Symbol subject, FAtiMA.Core.wellFormedNames.Symbol target, FAtiMA.Core.wellFormedNames.Symbol value, FAtiMA.socialRelations.LikeCondition.Operator op)
-
LikeCondition
protected LikeCondition(LikeCondition lC)
-
-
Method Detail
-
ParseSocialCondition
public static LikeCondition ParseSocialCondition(org.xml.sax.Attributes attributes) throws FAtiMA.Core.exceptions.InvalidEmotionTypeException, FAtiMA.Core.exceptions.ContextParsingException
- Throws:
FAtiMA.Core.exceptions.InvalidEmotionTypeExceptionFAtiMA.Core.exceptions.ContextParsingException
-
clone
public java.lang.Object clone()
- Specified by:
clonein classFAtiMA.Core.conditions.Condition
-
CheckCondition
public boolean CheckCondition(FAtiMA.Core.AgentModel am)
- Specified by:
CheckConditionin classFAtiMA.Core.conditions.Condition
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
GetValue
public FAtiMA.Core.wellFormedNames.Name GetValue()
- Specified by:
GetValuein classFAtiMA.Core.conditions.Condition
-
GetValidBindings
public java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am)
- Overrides:
GetValidBindingsin classFAtiMA.Core.conditions.Condition
-
MakeGround
public void MakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.conditions.Condition
-
MakeGround
public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.conditions.Condition
-
ReplaceUnboundVariables
public void ReplaceUnboundVariables(int variableID)
- Specified by:
ReplaceUnboundVariablesin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
ReplaceUnboundVariablesin classFAtiMA.Core.conditions.Condition
-
isGrounded
public boolean isGrounded()
- Specified by:
isGroundedin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
isGroundedin classFAtiMA.Core.conditions.Condition
-
GetValueBindings
protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am)
- Specified by:
GetValueBindingsin classFAtiMA.Core.conditions.Condition
-
-