public class RectangleConstraint extends MultiBinaryConstraint
| Modifier and Type | Field and Description |
|---|---|
static CardinalConstraint.Type[] |
ReactangleToCardinalX |
static CardinalConstraint.Type[] |
ReactangleToCardinalY |
static RCCConstraint.Type[][] |
ReactangleToRCC |
constraintsannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
RectangleConstraint(AllenIntervalConstraint xConstraint,
AllenIntervalConstraint yConstraint) |
| 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. |
static CardinalConstraint.Type |
getCardinalConstraint(RectangleConstraint c) |
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
AllenIntervalConstraint[] |
getInternalAllenIntervalConstraints() |
static RCCConstraint.Type |
getRCCConstraint(AllenIntervalConstraint.Type x,
AllenIntervalConstraint.Type y) |
AllenIntervalConstraint.Type[][] |
getType() |
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
java.lang.String |
toString()
Every
Constraint should implement a toString method (used by the
ConstraintNetwork rendering methods). |
createInternalConstraints, getFrom, getTo, setFrom, setTogetDescription, getInternalConstraints, propagateImmediately, setPropagateImmediately, setPropagateLatergetAnnotation, getColor, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic static CardinalConstraint.Type[] ReactangleToCardinalX
public static CardinalConstraint.Type[] ReactangleToCardinalY
public static RCCConstraint.Type[][] ReactangleToRCC
public RectangleConstraint(AllenIntervalConstraint xConstraint, AllenIntervalConstraint yConstraint)
public AllenIntervalConstraint.Type[][] getType()
public static RCCConstraint.Type getRCCConstraint(AllenIntervalConstraint.Type x, AllenIntervalConstraint.Type y)
public AllenIntervalConstraint[] getInternalAllenIntervalConstraints()
public static CardinalConstraint.Type getCardinalConstraint(RectangleConstraint c)
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 boolean isEquivalent(Constraint c)
ConstraintisEquivalent in class Constraintc - The Constraint to compare against.true iff the two constraints are considered to be equivalent.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 toString()
ConstraintConstraint should implement a toString method (used by the
ConstraintNetwork rendering methods).toString in class MultiBinaryConstraintString representation of this Constraint.public 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.