All Implemented Interfaces:
Direct Known Subclasses:
CSPBinaryConstraint, Dependence, JenrlConstraint
public abstract class
BinaryConstraint<V extends Variable<V,T>,T extends Value<V,T>>
that links exactly two variables.
Version: IFS 1.2 (Iterative Forward Search)
Copyright (C) 2006 - 2010 Tomáš Müller
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 3 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not see
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
( addVariable V var)
Add a variable to this constraint
( another V variable)
Returns the variable out of the constraints variables which is different
from the given variable.
( isFirst V variable)
True, id the given variable is the first one
Methods inherited from class net.sf.cpsolver.ifs.model.
Constraint addConstraintListener, assigned, assignedVariables, compareTo, computeConflicts, constraintListeners, countAssignedVariables, countVariables, equals, getDescription, getId, getModel, getName, hashCode, inConflict, isConsistent, isHard, removeConstraintListener, removeVariable, setModel, unassigned, variables