|
|||||||||
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 |
---|
LOG_DECISION_MSG, LOG_DOWN_MSG, LOG_UP_MSG, 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. |
java.lang.String |
getDecisionLogMsg(int i)
used for logging messages related to the search tree |
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 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, logDownBranch, logUpBranch |
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
- if a domain empties or a contradiction is
inferedpublic 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
- if a domain empties or a contradiction is
inferedpublic 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
- if a domain empties or a contradiction is
inferedpublic 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
public java.lang.String getDecisionLogMsg(int i)
AbstractBranching
getDecisionLogMsg
in class AbstractBranching
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |