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.9
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executedAtTimeOut
(int solutionsNo) It is executed right after time out is determined.void
It sets child listener for this timeout listener.void
setChildrenListeners
(TimeOutListener[] children) It sets children listeners for this timeout listener.
-
Method Details
-
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
It sets children listeners for this timeout listener.- Parameters:
children
- list of children listeners.
-
setChildrenListeners
It sets child listener for this timeout listener.- Parameters:
child
- child listener for this timeout listener.
-