Package FAtiMA.advancedMemoryComponent
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAddKnownVariables(String name, FAtiMA.Core.wellFormedNames.Symbol value) booleanCheckCondition(FAtiMA.Core.AgentModel am) clone()GetQuery()ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet>GetValidBindings(FAtiMA.Core.AgentModel am) FAtiMA.Core.wellFormedNames.NameGetValue()protected ArrayList<FAtiMA.Core.wellFormedNames.Substitution>GetValueBindings(FAtiMA.Core.AgentModel am) booleanvoidMakeGround(FAtiMA.Core.wellFormedNames.Substitution subst) voidMakeGround(ArrayList<FAtiMA.Core.wellFormedNames.Substitution> bindings) static SAConditionParseSA(Attributes attributes) Parses a SpreadActivateCondition given a XML attribute listvoidReplaceUnboundVariables(int variableID) Methods inherited from class FAtiMA.Core.conditions.Condition
CheckActivation, getName, getToM, hasChangedVerifiability, isVerifiable, setName, setToM, setVerifiable
-
Field Details
-
_knownVariables
-
_query
-
_value
protected FAtiMA.Core.wellFormedNames.Symbol _value
-
-
Method Details
-
ParseSA
Parses a SpreadActivateCondition given a XML attribute list- Parameters:
attributes- - A list of XML attributes- Returns:
- - the SpreadActivateCondition
-
AddKnownVariables
-
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
-
GetKnownVariables
-
GetValueBindings
protected ArrayList<FAtiMA.Core.wellFormedNames.Substitution> GetValueBindings(FAtiMA.Core.AgentModel am) - Specified by:
GetValueBindingsin classFAtiMA.Core.conditions.Condition
-
GetValidBindings
public ArrayList<FAtiMA.Core.wellFormedNames.SubstitutionSet> GetValidBindings(FAtiMA.Core.AgentModel am) - Overrides:
GetValidBindingsin classFAtiMA.Core.conditions.Condition
-
clone
- Specified by:
clonein classFAtiMA.Core.conditions.Condition
-
MakeGround
- 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
-