Package org.jacop.search
Interface TimeOutListener
-
- All Known Implementing Classes:
CreditCalculator
,NoGoodsCollector
,SimpleTimeOut
public interface TimeOutListener
It defines an interface of the class which wants to be informed about timeout occurring during search, as well as the number of solutions found before timeout has occurred.- Version:
- 4.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executedAtTimeOut(int solutionsNo)
It is executed right after time out is determined.void
setChildrenListeners(TimeOutListener child)
It sets child listener for this timeout listener.void
setChildrenListeners(TimeOutListener[] children)
It sets children listeners for this timeout listener.
-
-
-
Method Detail
-
executedAtTimeOut
void executedAtTimeOut(int solutionsNo)
It is executed right after time out is determined.- Parameters:
solutionsNo
- number of solutions found before the timeout occurred.
-
setChildrenListeners
void setChildrenListeners(TimeOutListener[] children)
It sets children listeners for this timeout listener.- Parameters:
children
- list of children listeners.
-
setChildrenListeners
void setChildrenListeners(TimeOutListener child)
It sets child listener for this timeout listener.- Parameters:
child
- child listener for this timeout listener.
-
-