|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - type of variable used in the search.public interface ExitChildListener<T extends Var>
Defines a listener which is called by the search if a child node is exited. It works for both the right and left child.
| Method Summary | |
|---|---|
boolean |
leftChild(PrimitiveConstraint choice,
boolean status)
It is executed after exiting the left child. |
boolean |
leftChild(T var,
int value,
boolean status)
It is executed after exiting the left child. |
void |
rightChild(PrimitiveConstraint choice,
boolean status)
It is executed after exiting the right child. |
void |
rightChild(T var,
int value,
boolean status)
It is executed after exiting the right child. |
void |
setChildrenListeners(ExitChildListener<T> child)
It adds one child listener. |
void |
setChildrenListeners(ExitChildListener<T>[] children)
It sets the children listeners for the current listener. |
| Method Detail |
|---|
boolean leftChild(T var,
int value,
boolean status)
var - variable used in the choice point.value - value used in the choice point.status - true if the solution was found in the child subtree, false otherwise.
boolean leftChild(PrimitiveConstraint choice,
boolean status)
choice - primitive constraint used as the base of the choice point.status - true if the solution was found in the child subtree, false otherwise.
void rightChild(T var,
int value,
boolean status)
var - variable used in the choice point.value - value used in the choice point.status - true if the solution was found in the child subtree, false otherwise.
exit the current node with false
void rightChild(PrimitiveConstraint choice,
boolean status)
choice - primitive constraint used as the base of the choice point.status - true if the solution was found in the child subtree, false otherwise.
exit the current node with falsevoid setChildrenListeners(ExitChildListener<T>[] children)
children - array containing children listeners.void setChildrenListeners(ExitChildListener<T> child)
child - added child listener.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||