public class DistanceConstraint extends MultiBinaryConstraint
constraintsannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
DistanceConstraint(Bounds... intervals) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
A
MultiConstraint must be cloneable. |
protected Constraint[] |
createInternalConstraints(Variable from,
Variable to)
This method must be defined to create the internal constraints underlying
this
MultiBinaryConstraint. |
Bounds[] |
getBounds() |
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
createInternalConstraints, getFrom, getTo, setFrom, setTo, toStringgetDescription, getInternalConstraints, propagateImmediately, setPropagateImmediately, setPropagateLatergetAnnotation, getColor, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic DistanceConstraint(Bounds... intervals)
protected Constraint[] createInternalConstraints(Variable from, Variable to)
MultiBinaryConstraintMultiBinaryConstraint.createInternalConstraints in class MultiBinaryConstraintfrom - The source Variable of the MultiConstraint.to - The destination Variable of the MultiConstraint.MultiBinaryConstraint.public java.lang.Object clone()
MultiConstraintMultiConstraint must be cloneable. This is used by the MultiConstraintSolver
class to instantiate proper constraints to delegate its underlying ConstraintSolvers.clone in class MultiConstraintpublic java.lang.String getEdgeLabel()
ConstraintConstraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods.getEdgeLabel in class ConstraintString representation of the constraint to be used for
ConstraintNetwork rendering.public Bounds[] getBounds()
public boolean isEquivalent(Constraint c)
ConstraintisEquivalent in class Constraintc - The Constraint to compare against.true iff the two constraints are considered to be equivalent.