Package FAtiMA.Core.conditions
Class PropertyGreater
- java.lang.Object
-
- FAtiMA.Core.conditions.Condition
-
- FAtiMA.Core.conditions.PropertyCondition
-
- FAtiMA.Core.conditions.PropertyGreater
-
- All Implemented Interfaces:
IGroundable,java.io.Serializable,java.lang.Cloneable
public class PropertyGreater extends PropertyCondition
Test that compares if a property is bigger than a given value. Only works with numeric values.- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyGreater(PropertyGreater pG)PropertyGreater(Name name, Name value, Symbol ToM)Creates a new PropertyTest of Type Greater
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanCheckCondition(AgentModel am)Checks if the Property Condition is verified in the agent's memory (KB + AM)java.lang.Objectclone()Clones this PropertyTest, returning an equal copy.voidPrint()Prints the PropertyTest to the Standard Outputjava.lang.StringtoString()Converts the PropertyTest to a String-
Methods inherited from class FAtiMA.Core.conditions.PropertyCondition
GetBindings, GetValue, GetValueBindings, isGrounded, MakeGround, MakeGround, ParseProperty, ReplaceUnboundVariables
-
Methods inherited from class FAtiMA.Core.conditions.Condition
CheckActivation, getName, getToM, GetValidBindings, hasChangedVerifiability, isVerifiable, setName, setToM, setVerifiable
-
-
-
-
Constructor Detail
-
PropertyGreater
public PropertyGreater(Name name, Name value, Symbol ToM)
Creates a new PropertyTest of Type Greater- Parameters:
name- - the PropertyTest's namevalue- - the PropertyTest's value
-
PropertyGreater
protected PropertyGreater(PropertyGreater pG)
-
-
Method Detail
-
clone
public java.lang.Object clone()
Clones this PropertyTest, returning an equal copy. If this clone is changed afterwards, the original object remains the same.- Overrides:
clonein classPropertyCondition- Returns:
- The PropertyTest's copy.
-
CheckCondition
public boolean CheckCondition(AgentModel am)
Checks if the Property Condition is verified in the agent's memory (KB + AM)- Overrides:
CheckConditionin classPropertyCondition- Returns:
- true if the condition is verified, false otherwise
- See Also:
KnowledgeBase
-
Print
public void Print()
Prints the PropertyTest to the Standard Output- Overrides:
Printin classPropertyCondition
-
toString
public java.lang.String toString()
Converts the PropertyTest to a String- Overrides:
toStringin classjava.lang.Object- Returns:
- the Converted String
-
-