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,java.io.Serializable,java.lang.Cloneable
public class RitualCondition extends FAtiMA.Core.conditions.PredicateCondition- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FAtiMA.Core.wellFormedNames.Symbol_ritualNameprotected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Symbol>_roles
-
Constructor Summary
Constructors Constructor Description RitualCondition(FAtiMA.Core.wellFormedNames.Symbol ritualName, java.util.ArrayList<FAtiMA.Core.wellFormedNames.Symbol> roles, FAtiMA.Core.wellFormedNames.Symbol ToM, boolean occurred, boolean repeat)RitualCondition(RitualCondition rC)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanCheckCondition(FAtiMA.Core.AgentModel am)Checks if the RitualCondition is verified in the agent's AutobiographicalMemoryjava.lang.Objectclone()java.lang.ObjectGenerateName(int id)java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>GetValidBindings(FAtiMA.Core.AgentModel am)java.lang.ObjectGround(FAtiMA.Core.wellFormedNames.Substitution subst)java.lang.ObjectGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindingConstraints)voidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)voidMakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)static RitualConditionParseRitualCondition(org.xml.sax.Attributes attributes)voidReplaceUnboundVariables(int variableID)-
Methods inherited from class FAtiMA.Core.conditions.PredicateCondition
getPositive, GetValue, GetValueBindings, isPositive, ParsePredicate, setPositive, toString
-
-
-
-
Constructor Detail
-
RitualCondition
public RitualCondition(FAtiMA.Core.wellFormedNames.Symbol ritualName, java.util.ArrayList<FAtiMA.Core.wellFormedNames.Symbol> roles, FAtiMA.Core.wellFormedNames.Symbol ToM, boolean occurred, boolean repeat)
-
RitualCondition
public RitualCondition(RitualCondition rC)
-
-
Method Detail
-
ParseRitualCondition
public static final RitualCondition ParseRitualCondition(org.xml.sax.Attributes attributes)
-
clone
public java.lang.Object clone()
- Overrides:
clonein classFAtiMA.Core.conditions.PredicateCondition
-
GenerateName
public java.lang.Object GenerateName(int id)
-
ReplaceUnboundVariables
public void ReplaceUnboundVariables(int variableID)
- Specified by:
ReplaceUnboundVariablesin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
ReplaceUnboundVariablesin classFAtiMA.Core.conditions.Condition
-
Ground
public java.lang.Object Ground(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindingConstraints)
-
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
-
Ground
public java.lang.Object Ground(FAtiMA.Core.wellFormedNames.Substitution subst)
-
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 java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am)
- Overrides:
GetValidBindingsin classFAtiMA.Core.conditions.Condition
-
-