|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.integer.search.IncreasingDomain
public final class IncreasingDomain
Constructor Summary | |
---|---|
IncreasingDomain()
|
Method Summary | |
---|---|
int |
getFirstVal(Var x)
Accessing the index of the first branch for variable x |
int |
getNextVal(Var x,
int i)
generates the index of the next branch after branch i, on the alternative associated to variable x |
boolean |
hasNextVal(Var x,
int i)
testing whether more branches can be considered after branch i, on the alternative associated to variable x |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IncreasingDomain()
Method Detail |
---|
public boolean hasNextVal(Var x, int i)
hasNextVal
in interface IValIterator
x
- the variable under scrutinyi
- the index of the last branch explored
public int getFirstVal(Var x)
getFirstVal
in interface IValIterator
x
- the variable under scrutiny
public int getNextVal(Var x, int i)
getNextVal
in interface IValIterator
x
- the variable under scrutinyi
- the index of the last branch explored
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |