public abstract class BinaryConstraint extends Constraint
annotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
BinaryConstraint()
Creates a new
BinaryConstraint. |
| Modifier and Type | Method and Description |
|---|---|
Variable |
getFrom()
Get the source
Variable of this BinaryConstraint. |
Variable |
getTo()
Get the destination
Variable of this BinaryConstraint. |
void |
setFrom(Variable f)
Set the source
Variable of this BinaryConstraint. |
void |
setTo(Variable t)
Set the destination
Variable of this BinaryConstraint. |
java.lang.String |
toString()
Every
Constraint should implement a toString method (used by the
ConstraintNetwork rendering methods). |
clone, getAnnotation, getColor, getDescription, getEdgeLabel, getID, getScope, isAutoRemovable, isEquivalent, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic BinaryConstraint()
BinaryConstraint.public Variable getFrom()
Variable of this BinaryConstraint.Variable of this BinaryConstraint.public Variable getTo()
Variable of this BinaryConstraint.Variable of this BinaryConstraint.public void setFrom(Variable f)
Variable of this BinaryConstraint.f - The source Variable of this BinaryConstraint.public void setTo(Variable t)
Variable of this BinaryConstraint.t - The destination Variable of this BinaryConstraint.public java.lang.String toString()
ConstraintConstraint should implement a toString method (used by the
ConstraintNetwork rendering methods).toString in class ConstraintString representation of this Constraint.