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

    Fields
    Modifier and Type
    Field
    Description
    protected FAtiMA.Core.wellFormedNames.Symbol
     
    protected ArrayList<FAtiMA.Core.wellFormedNames.Symbol>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RitualCondition(FAtiMA.Core.wellFormedNames.Symbol ritualName, ArrayList<FAtiMA.Core.wellFormedNames.Symbol> roles, FAtiMA.Core.wellFormedNames.Symbol ToM, boolean occurred, boolean repeat)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    CheckCondition(FAtiMA.Core.AgentModel am)
    Checks if the RitualCondition is verified in the agent's AutobiographicalMemory
     
    GenerateName(int id)
     
    ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>
    GetValidBindings(FAtiMA.Core.AgentModel am)
     
    Ground(FAtiMA.Core.wellFormedNames.Substitution subst)
     
    Ground(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindingConstraints)
     
    void
    MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
     
    void
    MakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
     
    static final RitualCondition
     
    void
    ReplaceUnboundVariables(int variableID)
     

    Methods inherited from class FAtiMA.Core.conditions.PredicateCondition

    getPositive, GetValue, GetValueBindings, isPositive, ParsePredicate, setPositive, toString

    Methods inherited from class FAtiMA.Core.conditions.Condition

    CheckActivation, getName, getToM, hasChangedVerifiability, isGrounded, isVerifiable, setName, setToM, setVerifiable

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • _roles

      protected ArrayList<FAtiMA.Core.wellFormedNames.Symbol> _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

      public RitualCondition(RitualCondition rC)
  • Method Details

    • ParseRitualCondition

      public static final RitualCondition ParseRitualCondition(Attributes attributes)
    • clone

      public Object clone()
      Overrides:
      clone in class FAtiMA.Core.conditions.PredicateCondition
    • GenerateName

      public Object GenerateName(int id)
    • ReplaceUnboundVariables

      public void ReplaceUnboundVariables(int variableID)
      Specified by:
      ReplaceUnboundVariables in interface FAtiMA.Core.wellFormedNames.IGroundable
      Overrides:
      ReplaceUnboundVariables in class FAtiMA.Core.conditions.Condition
    • Ground

      public Object Ground(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindingConstraints)
    • MakeGround

      public void MakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)
      Specified by:
      MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundable
      Overrides:
      MakeGround in class FAtiMA.Core.conditions.Condition
    • Ground

      public Object Ground(FAtiMA.Core.wellFormedNames.Substitution subst)
    • MakeGround

      public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
      Specified by:
      MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundable
      Overrides:
      MakeGround in class FAtiMA.Core.conditions.Condition
    • CheckCondition

      public boolean CheckCondition(FAtiMA.Core.AgentModel am)
      Checks if the RitualCondition is verified in the agent's AutobiographicalMemory
      Overrides:
      CheckCondition in class FAtiMA.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:
      GetValidBindings in class FAtiMA.Core.conditions.Condition