Package FAtiMA.Core.conditions
Class PropertyNotEqual
java.lang.Object
FAtiMA.Core.conditions.Condition
FAtiMA.Core.conditions.PropertyCondition
FAtiMA.Core.conditions.PropertyNotEqual
- All Implemented Interfaces:
IGroundable,Serializable,Cloneable
Test that compares if a property is different from a given value
- Author:
- Joao Dias
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertyNotEqual(Name name, Name value, Symbol ToM) Creates a new PropertyTest of Type NotEqual -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the Property Condition is verified in the agent's Memory (KB + AM)clone()Clones this PropertyTest, returning an equal copy.This method finds all the possible sets of Substitutions that applied to the condition will make it valid (true) according to the current MemoryThis method finds all the possible sets of Inequalities that that result from the condition.protected ArrayList<Substitution>voidPrint()Prints the PropertyTest to the Standard OutputtoString()Converts the PropertyTest to a StringMethods inherited from class FAtiMA.Core.conditions.PropertyCondition
GetBindings, GetValue, GetValueBindings, isGrounded, MakeGround, MakeGround, ParseProperty, ReplaceUnboundVariablesMethods inherited from class FAtiMA.Core.conditions.Condition
CheckActivation, getName, getToM, hasChangedVerifiability, isVerifiable, setName, setToM, setVerifiable
-
Constructor Details
-
PropertyNotEqual
Creates a new PropertyTest of Type NotEqual- Parameters:
name- - the PropertyTest's namevalue- - the PropertyTest's value
-
PropertyNotEqual
-
-
Method Details
-
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
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:
-
GetValidBindings
This method finds all the possible sets of Substitutions that applied to the condition will make it valid (true) according to the current Memory- Overrides:
GetValidBindingsin classCondition- Returns:
- A list with all SubstitutionsSets that make the condition valid
- See Also:
-
GetValidInequalities
This method finds all the possible sets of Inequalities that that result from the condition. In order for the method to work properly, at least one part of the NotEqual Condition must be grounded. i.e, we cannot determine inequalities between [X] != [Y]- Returns:
- A list with all SubstitutionSets (with inequalities inside) that if they are verified, the NotEqualCondition is also verified
-
GetValueBindings
-
Print
public void Print()Prints the PropertyTest to the Standard Output- Overrides:
Printin classPropertyCondition
-
toString
Converts the PropertyTest to a String
-