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, whenDomainChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassign, contains, fillArray, getSolver, isBound, max, min, propagateOnBind, propagateOnBoundChange, propagateOnDomainChange, remove, removeAbove, removeBelow, size, whenBind, whenBoundsChange, whenDomainChangepublic BoolVarIsEqual(IntVar x, int v)
public boolean isTrue()
BoolVarpublic boolean isFalse()
BoolVarpublic void assign(boolean b)
throws InconsistencyException
BoolVarassign in interface BoolVarb - 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.