T - type of variable used in the search.public interface ExitChildListener<T extends Var>
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 falsevoid 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.Copyright © 2022. All rights reserved.