Package FAtiMA.culture
Class RitualCondition
java.lang.Object
FAtiMA.Core.conditions.Condition
FAtiMA.Core.conditions.PredicateCondition
FAtiMA.culture.RitualCondition
- All Implemented Interfaces:
FAtiMA.Core.wellFormedNames.IGroundable,Serializable,Cloneable
public class RitualCondition
extends FAtiMA.Core.conditions.PredicateCondition
- Author:
- Joao Dias
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FAtiMA.Core.wellFormedNames.Symbolprotected ArrayList<FAtiMA.Core.wellFormedNames.Symbol> -
Constructor Summary
ConstructorsConstructorDescriptionRitualCondition(FAtiMA.Core.wellFormedNames.Symbol ritualName, ArrayList<FAtiMA.Core.wellFormedNames.Symbol> roles, FAtiMA.Core.wellFormedNames.Symbol ToM, boolean occurred, boolean repeat) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheckCondition(FAtiMA.Core.AgentModel am) Checks if the RitualCondition is verified in the agent's AutobiographicalMemoryclone()GenerateName(int id) ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>GetValidBindings(FAtiMA.Core.AgentModel am) Ground(FAtiMA.Core.wellFormedNames.Substitution subst) voidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) voidMakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) static final RitualConditionParseRitualCondition(Attributes attributes) voidReplaceUnboundVariables(int variableID) Methods inherited from class FAtiMA.Core.conditions.PredicateCondition
getPositive, GetValue, GetValueBindings, isPositive, ParsePredicate, setPositive, toStringMethods inherited from class FAtiMA.Core.conditions.Condition
CheckActivation, getName, getToM, hasChangedVerifiability, isGrounded, isVerifiable, setName, setToM, setVerifiable
-
Field Details
-
_roles
-
_ritualName
protected FAtiMA.Core.wellFormedNames.Symbol _ritualName
-
-
Constructor Details
-
RitualCondition
public RitualCondition(FAtiMA.Core.wellFormedNames.Symbol ritualName, ArrayList<FAtiMA.Core.wellFormedNames.Symbol> roles, FAtiMA.Core.wellFormedNames.Symbol ToM, boolean occurred, boolean repeat) -
RitualCondition
-
-
Method Details
-
ParseRitualCondition
-
clone
- Overrides:
clonein classFAtiMA.Core.conditions.PredicateCondition
-
GenerateName
-
ReplaceUnboundVariables
public void ReplaceUnboundVariables(int variableID) - Specified by:
ReplaceUnboundVariablesin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
ReplaceUnboundVariablesin classFAtiMA.Core.conditions.Condition
-
Ground
-
MakeGround
- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.conditions.Condition
-
Ground
-
MakeGround
public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) - Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.conditions.Condition
-
CheckCondition
public boolean CheckCondition(FAtiMA.Core.AgentModel am) Checks if the RitualCondition is verified in the agent's AutobiographicalMemory- Overrides:
CheckConditionin classFAtiMA.Core.conditions.PredicateCondition- Returns:
- true if the RitualCondition is verified, false otherwise
- See Also:
-
AutobiographicalMemory
-
GetValidBindings
public ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am) - Overrides:
GetValidBindingsin classFAtiMA.Core.conditions.Condition
-