public class BoolVarIsEqual extends IntVarImpl implements BoolVar
Constructor and Description |
---|
BoolVarIsEqual(IntVar x,
int v) |
Modifier and Type | Method and Description |
---|---|
void |
assign(boolean b)
Assigns the variable
|
boolean |
isFalse()
Tests if the variable is bound to false
|
boolean |
isTrue()
Tests if the variable is bound to true
|
assign, contains, fillArray, getSolver, isBound, max, min, propagateOnBind, propagateOnBoundChange, propagateOnDomainChange, remove, removeAbove, removeBelow, scheduleAll, size, toString, whenBind, whenBoundsChange, whenDomainChange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assign, contains, fillArray, getSolver, isBound, max, min, propagateOnBind, propagateOnBoundChange, propagateOnDomainChange, remove, removeAbove, removeBelow, size, whenBind, whenBoundsChange, whenDomainChange
public BoolVarIsEqual(IntVar x, int v)
public boolean isTrue()
BoolVar
public boolean isFalse()
BoolVar
public void assign(boolean b) throws InconsistencyException
BoolVar
assign
in interface BoolVar
b
- the value to assign to this boolean variableInconsistencyException
- is thrown if the value is not in the domainCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.