Class VarsNeqRequirement
java.lang.Object
org.tweetyproject.action.grounding.VarsNeqRequirement
- All Implemented Interfaces:
GroundingRequirement
This class represents a single grounding requirement stating that two
variables are not allowed to be substituted by the same constant.
- Author:
- Sebastian Homann
-
Constructor Summary
ConstructorDescriptionVarsNeqRequirement
(Variable first, Variable second) Creates a new grounding requirement for the two given variables that are not allowed to be set to the same constant in one ground instance. -
Method Summary
-
Constructor Details
-
VarsNeqRequirement
Creates a new grounding requirement for the two given variables that are not allowed to be set to the same constant in one ground instance.- Parameters:
first
- a variable.second
- another variable.
-
-
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
public int hashCode() -
toString
-