Class VarConstNeqRequirement
java.lang.Object
org.tweetyproject.action.grounding.VarConstNeqRequirement
- All Implemented Interfaces:
GroundingRequirement
This class represents a single grounding requirement stating that a variable
is not allowed to be substituted by a specific constant.
- Author:
- Sebastian Homann
-
Constructor Summary
ConstructorDescriptionVarConstNeqRequirement
(Variable variable, Constant constant) Creates a new grounding requirement expressing, that the variable given may not be set to the specific constant. -
Method Summary
-
Constructor Details
-
VarConstNeqRequirement
-
-
Method Details
-
isValid
Description copied from interface:GroundingRequirement
This method checks if an assignment of constants to variables satisfies a given grounding condition.- Specified by:
isValid
in interfaceGroundingRequirement
- Parameters:
assignment
- the assignment to be validated.- Returns:
- true, if the assignment satisfies this requirement.
-
equals
-
hashCode
-
toString
-