|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IntBranching
IntBranching objects are specific branching objects where each branch is labeled with an integer. This is typically useful for choice points in search trees.
| Method Summary | |
|---|---|
boolean |
branchOn(java.lang.Object x,
int i)
A method exploring the i-th branch of choice point. |
boolean |
explore(int n)
A method launching the exploration of a subtree in order to satisfy the current goal. |
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 up the current branch to the father choice point. |
| Methods inherited from interface choco.branch.Branching |
|---|
selectBranchingObject |
| Method Detail |
|---|
void goDownBranch(java.lang.Object x,
int i)
throws ContradictionException
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
infered
void goUpBranch(java.lang.Object x,
int i)
throws ContradictionException
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
inferedint getFirstBranch(java.lang.Object x)
x - the object on which the alternative is set
int getNextBranch(java.lang.Object x,
int i)
x - the object on which the alternative is seti - the index of the current branch
boolean finishedBranching(java.lang.Object x,
int i)
x - the object on which the alternative is seti - the index of the last branch
boolean branchOn(java.lang.Object x,
int i)
throws ContradictionException
x - the current branching objecti - the index of the branch
ContradictionException - if a domain empties or a contradiction is
inferedboolean explore(int n)
n - current depth in the search tree
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||