public class VarsNeqRequirement extends Object implements GroundingRequirement
| Constructor and Description |
|---|
VarsNeqRequirement(net.sf.tweety.logics.commons.syntax.Variable first,
net.sf.tweety.logics.commons.syntax.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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isValid(Map<net.sf.tweety.logics.commons.syntax.Variable,net.sf.tweety.logics.commons.syntax.Constant> assignment)
This method checks, if an assignment of constants to variables satisfies a
given grounding condition.
|
String |
toString() |
public VarsNeqRequirement(net.sf.tweety.logics.commons.syntax.Variable first,
net.sf.tweety.logics.commons.syntax.Variable second)
first - a variable.second - another variable.public boolean isValid(Map<net.sf.tweety.logics.commons.syntax.Variable,net.sf.tweety.logics.commons.syntax.Constant> assignment)
GroundingRequirementisValid in interface GroundingRequirementassignment - the assignment to be validated.Copyright © 2018. All rights reserved.