Class SACondition

java.lang.Object
FAtiMA.Core.conditions.Condition
FAtiMA.advancedMemoryComponent.SACondition
All Implemented Interfaces:
FAtiMA.Core.wellFormedNames.IGroundable, Serializable, Cloneable

public class SACondition extends FAtiMA.Core.conditions.Condition
Parses a SACondition in Actions.xml file
Author:
Meiyii Lim 2010-04-18
See Also:
  • Field Details

    • _knownVariables

      protected Hashtable<String,FAtiMA.Core.wellFormedNames.Symbol> _knownVariables
    • _query

      protected String _query
    • _value

      protected FAtiMA.Core.wellFormedNames.Symbol _value
  • Method Details

    • ParseSA

      public static SACondition ParseSA(Attributes attributes)
      Parses a SpreadActivateCondition given a XML attribute list
      Parameters:
      attributes - - A list of XML attributes
      Returns:
      - the SpreadActivateCondition
    • AddKnownVariables

      public void AddKnownVariables(String name, FAtiMA.Core.wellFormedNames.Symbol value)
    • CheckCondition

      public boolean CheckCondition(FAtiMA.Core.AgentModel am)
      Specified by:
      CheckCondition in class FAtiMA.Core.conditions.Condition
    • GetValue

      public FAtiMA.Core.wellFormedNames.Name GetValue()
      Specified by:
      GetValue in class FAtiMA.Core.conditions.Condition
    • GetQuery

      public String GetQuery()
    • GetKnownVariables

      public Hashtable<String,FAtiMA.Core.wellFormedNames.Symbol> GetKnownVariables()
    • GetValueBindings

      protected ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am)
      Specified by:
      GetValueBindings in class FAtiMA.Core.conditions.Condition
    • GetValidBindings

      public ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am)
      Overrides:
      GetValidBindings in class FAtiMA.Core.conditions.Condition
    • clone

      public Object clone()
      Specified by:
      clone in class FAtiMA.Core.conditions.Condition
    • 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
    • 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
    • ReplaceUnboundVariables

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

      public boolean isGrounded()
      Specified by:
      isGrounded in interface FAtiMA.Core.wellFormedNames.IGroundable
      Overrides:
      isGrounded in class FAtiMA.Core.conditions.Condition