Package FAtiMA.advancedMemoryComponent
Class SACondition
- java.lang.Object
-
- FAtiMA.Core.conditions.Condition
-
- FAtiMA.advancedMemoryComponent.SACondition
-
- All Implemented Interfaces:
FAtiMA.Core.wellFormedNames.IGroundable,java.io.Serializable,java.lang.Cloneable
public class SACondition extends FAtiMA.Core.conditions.ConditionParses a SACondition in Actions.xml file- Author:
- Meiyii Lim 2010-04-18
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Hashtable<java.lang.String,FAtiMA.Core.wellFormedNames.Symbol>_knownVariablesprotected java.lang.String_queryprotected FAtiMA.Core.wellFormedNames.Symbol_value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddKnownVariables(java.lang.String name, FAtiMA.Core.wellFormedNames.Symbol value)booleanCheckCondition(FAtiMA.Core.AgentModel am)java.lang.Objectclone()java.util.Hashtable<java.lang.String,FAtiMA.Core.wellFormedNames.Symbol>GetKnownVariables()java.lang.StringGetQuery()java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>GetValidBindings(FAtiMA.Core.AgentModel am)FAtiMA.Core.wellFormedNames.NameGetValue()protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution>GetValueBindings(FAtiMA.Core.AgentModel am)booleanisGrounded()voidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)voidMakeGround(java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings)static SAConditionParseSA(org.xml.sax.Attributes attributes)Parses a SpreadActivateCondition given a XML attribute listvoidReplaceUnboundVariables(int variableID)
-
-
-
Method Detail
-
ParseSA
public static SACondition ParseSA(org.xml.sax.Attributes attributes)
Parses a SpreadActivateCondition given a XML attribute list- Parameters:
attributes- - A list of XML attributes- Returns:
- - the SpreadActivateCondition
-
AddKnownVariables
public void AddKnownVariables(java.lang.String name, FAtiMA.Core.wellFormedNames.Symbol value)
-
CheckCondition
public boolean CheckCondition(FAtiMA.Core.AgentModel am)
- Specified by:
CheckConditionin classFAtiMA.Core.conditions.Condition
-
GetValue
public FAtiMA.Core.wellFormedNames.Name GetValue()
- Specified by:
GetValuein classFAtiMA.Core.conditions.Condition
-
GetQuery
public java.lang.String GetQuery()
-
GetKnownVariables
public java.util.Hashtable<java.lang.String,FAtiMA.Core.wellFormedNames.Symbol> GetKnownVariables()
-
GetValueBindings
protected java.util.ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am)
- Specified by:
GetValueBindingsin classFAtiMA.Core.conditions.Condition
-
GetValidBindings
public java.util.ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am)
- Overrides:
GetValidBindingsin classFAtiMA.Core.conditions.Condition
-
clone
public java.lang.Object clone()
- Specified by:
clonein classFAtiMA.Core.conditions.Condition
-
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
-
MakeGround
public void MakeGround(FAtiMA.Core.wellFormedNames.Substitution subst)
- Specified by:
MakeGroundin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
MakeGroundin classFAtiMA.Core.conditions.Condition
-
ReplaceUnboundVariables
public void ReplaceUnboundVariables(int variableID)
- Specified by:
ReplaceUnboundVariablesin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
ReplaceUnboundVariablesin classFAtiMA.Core.conditions.Condition
-
isGrounded
public boolean isGrounded()
- Specified by:
isGroundedin interfaceFAtiMA.Core.wellFormedNames.IGroundable- Overrides:
isGroundedin classFAtiMA.Core.conditions.Condition
-
-