Package FAtiMA.socialRelations
Class LikeCondition
java.lang.Object
FAtiMA.Core.conditions.Condition
FAtiMA.socialRelations.LikeCondition
- All Implemented Interfaces:
FAtiMA.Core.wellFormedNames.IGroundable,Serializable,Cloneable
public class LikeCondition
extends FAtiMA.Core.conditions.Condition
Represents 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:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLikeCondition(FAtiMA.Core.wellFormedNames.Symbol subject, FAtiMA.Core.wellFormedNames.Symbol target, FAtiMA.Core.wellFormedNames.Symbol value, FAtiMA.socialRelations.LikeCondition.Operator op) protected -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheckCondition(FAtiMA.Core.AgentModel am) clone()ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>GetValidBindings(FAtiMA.Core.AgentModel am) FAtiMA.Core.wellFormedNames.NameGetValue()protected ArrayList<FAtiMA.Core.wellFormedNames.Substitution>GetValueBindings(FAtiMA.Core.AgentModel am) booleanvoidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) voidMakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) static LikeConditionParseSocialCondition(Attributes attributes) voidReplaceUnboundVariables(int variableID) toString()Methods inherited from class FAtiMA.Core.conditions.Condition
CheckActivation, getName, getToM, hasChangedVerifiability, isVerifiable, setName, setToM, setVerifiable
-
Constructor Details
-
LikeCondition
protected LikeCondition(FAtiMA.Core.wellFormedNames.Symbol subject, FAtiMA.Core.wellFormedNames.Symbol target, FAtiMA.Core.wellFormedNames.Symbol value, FAtiMA.socialRelations.LikeCondition.Operator op) -
LikeCondition
-
-
Method Details
-
ParseSocialCondition
public static LikeCondition ParseSocialCondition(Attributes attributes) throws FAtiMA.Core.exceptions.InvalidEmotionTypeException, FAtiMA.Core.exceptions.ContextParsingException - Throws:
FAtiMA.Core.exceptions.InvalidEmotionTypeExceptionFAtiMA.Core.exceptions.ContextParsingException
-
clone
- Specified by:
clonein classFAtiMA.Core.conditions.Condition
-
CheckCondition
public boolean CheckCondition(FAtiMA.Core.AgentModel am) - Specified by:
CheckConditionin classFAtiMA.Core.conditions.Condition
-
toString
-
GetValue
public FAtiMA.Core.wellFormedNames.Name GetValue()- Specified by:
GetValuein classFAtiMA.Core.conditions.Condition
-
GetValidBindings
public ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am) - Overrides:
GetValidBindingsin classFAtiMA.Core.conditions.Condition
-
MakeGround
- 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 ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am) - Specified by:
GetValueBindingsin classFAtiMA.Core.conditions.Condition
-