Java Reference
Java Reference
gen/com/google/ortools/constraintsolver/IntVar.java
IntVarIterator makeHoleIterator(boolean reversible)
Creates a hole iterator.
long oldMax()
Returns the previous max.
The class IntExpr is the base of all integer expressions in constraint programming.
Definition: IntExpr.java:14
void accept(ModelVisitor visitor)
Accepts the given visitor.
void removeValue(long v)
This method removes the value 'v' from the domain of the variable.
IntVar isEqual(long constant)
IsEqual.
The class IntVar is a subset of IntExpr.
IntVar isDifferent(long constant)
boolean contains(long v)
This method returns whether the value 'v' is in the domain of the variable.
void removeInterval(long l, long u)
This method removes the interval 'l' .
IntVarIterator makeDomainIterator(boolean reversible)
Creates a domain iterator.
void whenDomain(Runnable closure)
This method attaches a closure that will watch any domain modification of the domain of the variable.
void removeValues(long[] values)
This method remove the values from the domain of the variable.
IntVar var()
Creates a variable from the expression.
int varType()
The class Iterator has two direct subclasses.
Definition: IntVarIterator.java:14
A Demon is the base element of a propagation queue.
Definition: Demon.java:14
IntVar isGreaterOrEqual(long constant)
void whenBound(Runnable closure)
This method attaches a closure that will be awakened when the variable is bound.
IntVar(long cPtr, boolean cMemoryOwn)
int index()
Returns the index of the variable.
IntVar isLessOrEqual(long constant)
void whenBound(Demon d)
This method attaches a demon that will be awakened when the variable is bound.
void setValue(long[] values)
This method intersects the current domain with the values in the array.
long oldMin()
Returns the previous min.
long value()
This method returns the value of the variable.
java.math.BigInteger size()
This method returns the number of values in the domain of the variable.
void whenDomain(Demon d)
This method attaches a demon that will watch any domain modification of the domain of the variable.
boolean isVar()
Returns true if the expression is indeed a variable.