public interface BoolVar extends IntVar
0 corresponds to false, and 1 corresponds to true
| 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, size, whenBind, whenBoundsChange, whenDomainChangeboolean isTrue()
boolean isFalse()
void assign(boolean b)
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.