public class BoundConstraint extends Constraint
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
depvars
The variables, from which the constraint depends
(might be additional variables from value source).
|
protected java.util.List |
vars
The variable to bind/test against.
|
operator, valuesource
Constructor and Description |
---|
BoundConstraint(java.lang.Object valuesource,
java.util.List vars,
IOperator operator)
Create a new bound constraint.
|
BoundConstraint(java.lang.Object valuesource,
Variable var)
Create a new bound constraint.
|
BoundConstraint(java.lang.Object valuesource,
Variable var,
IOperator operator)
Create a new bound constraint.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getBindVariables()
Get the variables to be bound.
|
java.util.List |
getVariables()
Get the variables.
|
boolean |
isMultiConstraint()
Test if the constraint is a multi constraint.
|
java.lang.String |
toString()
Get the string representation.
|
getOperator, getValueSource, getVariablesForValueSource
protected java.util.List vars
protected java.util.List depvars
public BoundConstraint(java.lang.Object valuesource, Variable var)
public BoundConstraint(java.lang.Object valuesource, Variable var, IOperator operator)
public BoundConstraint(java.lang.Object valuesource, java.util.List vars, IOperator operator)
public boolean isMultiConstraint()
public java.util.List getVariables()
public java.util.List getBindVariables()
public java.lang.String toString()
toString
in class java.lang.Object