|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.branch.AbstractBranching
choco.search.AbstractIntBranching
choco.real.search.AssignInterval
public class AssignInterval
A binary branching assigning interval to subinterval.
Field Summary | |
---|---|
protected IValIterator |
valIterator
|
protected RealVarSelector |
varSelector
|
Fields inherited from class choco.branch.AbstractBranching |
---|
logger, manager, nextBranching |
Constructor Summary | |
---|---|
AssignInterval(RealVarSelector varSelector,
IValIterator valIterator)
|
Method Summary | |
---|---|
boolean |
branchOn(java.lang.Object x,
int n)
Deprecated. replaced by the management incremental search (with a stack of BranchingTrace storing the environment (local variables) associated to each choice point |
boolean |
finishedBranching(java.lang.Object x,
int i)
Checks whether all branches have already been explored at the current choice point |
int |
getFirstBranch(java.lang.Object x)
Computes the search index of the first branch of the choice point |
int |
getNextBranch(java.lang.Object x,
int i)
Computes the search index of the next branch of the choice point |
void |
goDownBranch(java.lang.Object x,
int i)
performs the action, so that we go down a branch from the current choice point |
void |
goUpBranch(java.lang.Object x,
int i)
performs the action, so that we go down up the current branch to the father choice point |
java.lang.Object |
selectBranchingObject()
selecting the object under scrutiny (that object on which an alternative will be set) |
Methods inherited from class choco.search.AbstractIntBranching |
---|
explore |
Methods inherited from class choco.branch.AbstractBranching |
---|
getNextBranching, setNextBranching, setSolver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.branch.IntBranching |
---|
explore |
Field Detail |
---|
protected RealVarSelector varSelector
protected IValIterator valIterator
Constructor Detail |
---|
public AssignInterval(RealVarSelector varSelector, IValIterator valIterator)
Method Detail |
---|
public java.lang.Object selectBranchingObject()
Branching
selectBranchingObject
in interface Branching
public boolean branchOn(java.lang.Object x, int n) throws ContradictionException
IntBranching
branchOn
in interface IntBranching
x
- the current branching objectn
- the index of the branch
ContradictionException
public void goDownBranch(java.lang.Object x, int i) throws ContradictionException
IntBranching
goDownBranch
in interface IntBranching
goDownBranch
in class AbstractIntBranching
x
- the object on which the alternative is seti
- the label of the branch that we want to go down
ContradictionException
public void goUpBranch(java.lang.Object x, int i) throws ContradictionException
IntBranching
goUpBranch
in interface IntBranching
goUpBranch
in class AbstractIntBranching
x
- the object on which the alternative has been set at the father choice pointi
- the label of the branch that has been travelled down from the father choice point
ContradictionException
public int getFirstBranch(java.lang.Object x)
IntBranching
getFirstBranch
in interface IntBranching
x
- the object on which the alternative is set
public int getNextBranch(java.lang.Object x, int i)
IntBranching
getNextBranch
in interface IntBranching
x
- the object on which the alternative is seti
- the index of the current branch
public boolean finishedBranching(java.lang.Object x, int i)
IntBranching
finishedBranching
in interface IntBranching
x
- the object on which the alternative is seti
- the index of the last branch
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |