Class 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 _ritualName  
      protected 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
      boolean CheckCondition​(FAtiMA.Core.AgentModel am)
      Checks if the RitualCondition is verified in the agent's AutobiographicalMemory
      java.lang.Object clone()  
      java.lang.Object GenerateName​(int id)  
      java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings​(FAtiMA.Core.AgentModel am)  
      java.lang.Object Ground​(FAtiMA.Core.wellFormedNames.Substitution subst)  
      java.lang.Object Ground​(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindingConstraints)  
      void MakeGround​(FAtiMA.Core.wellFormedNames.Substitution subst)  
      void MakeGround​(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)  
      static RitualCondition ParseRitualCondition​(org.xml.sax.Attributes attributes)  
      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 Detail

      • _roles

        protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Symbol> _roles
      • _ritualName

        protected FAtiMA.Core.wellFormedNames.Symbol _ritualName
    • 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)
    • Method Detail

      • ParseRitualCondition

        public static final RitualCondition ParseRitualCondition​(org.xml.sax.Attributes attributes)
      • clone

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

        public java.lang.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 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:
        MakeGround in interface FAtiMA.Core.wellFormedNames.IGroundable
        Overrides:
        MakeGround in class FAtiMA.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:
        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 java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings​(FAtiMA.Core.AgentModel am)
        Overrides:
        GetValidBindings in class FAtiMA.Core.conditions.Condition