public class SymbolicValueConstraint extends MultiConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
SymbolicValueConstraint.Type |
constraintsannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
SymbolicValueConstraint(SymbolicValueConstraint.Type type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
A
MultiConstraint must be cloneable. |
protected Constraint[] |
createInternalConstraints(Variable[] variables)
This method must be implemented by the implementing class, and should instantiate
the internal constraints underlying this
MultiConstraint. |
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
java.lang.Object |
getType() |
java.lang.String[] |
getValue() |
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
void |
setFrom(Variable f) |
void |
setTo(Variable t) |
void |
setUnaryValue(boolean[] unaryValue)
Deprecated.
|
void |
setValue(boolean[] unaryValue) |
void |
setValue(java.lang.String... symbols) |
java.lang.String |
toString()
Every
Constraint should implement a toString method (used by the
ConstraintNetwork rendering methods). |
getDescription, getInternalConstraints, propagateImmediately, setPropagateImmediately, setPropagateLatergetAnnotation, getColor, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic SymbolicValueConstraint(SymbolicValueConstraint.Type type)
@Deprecated public void setUnaryValue(boolean[] unaryValue)
public java.lang.String[] getValue()
public void setValue(boolean[] unaryValue)
public void setValue(java.lang.String... symbols)
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.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 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 getType()
protected Constraint[] createInternalConstraints(Variable[] variables)
MultiConstraintMultiConstraint.createInternalConstraints in class MultiConstraintvariables - The Variables that are in the scope of this MultiConstraint.MultiConstraint.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.public void setFrom(Variable f)
public void setTo(Variable t)