Package org.jacop.search
Class SimpleTimeOut
java.lang.Object
org.jacop.search.SimpleTimeOut
- All Implemented Interfaces:
TimeOutListener
It defines a simple time out listener. It only records the fact
that timeout listener occurred as well as number of solutions found
before the timeout.
- Version:
- 4.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionintIt records number of found solutions.It contains child(ren) of this timeout listener.booleanIt specifies if the timeout has already occurred. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutedAtTimeOut(int solutionsNo) It is executed right after time out is determined.voidIt sets child listener for this timeout listener.voidsetChildrenListeners(TimeOutListener[] children) It sets children listeners for this timeout listener.
-
Field Details
-
timeOutOccurred
public boolean timeOutOccurredIt specifies if the timeout has already occurred. -
solutionsNo
public int solutionsNoIt records number of found solutions. -
timeOutListeners
It contains child(ren) of this timeout listener.
-
-
Constructor Details
-
SimpleTimeOut
public SimpleTimeOut()
-
-
Method Details
-
executedAtTimeOut
public void executedAtTimeOut(int solutionsNo) Description copied from interface:TimeOutListenerIt is executed right after time out is determined.- Specified by:
executedAtTimeOutin interfaceTimeOutListener- Parameters:
solutionsNo- number of solutions found before the timeout occurred.
-
setChildrenListeners
Description copied from interface:TimeOutListenerIt sets children listeners for this timeout listener.- Specified by:
setChildrenListenersin interfaceTimeOutListener- Parameters:
children- list of children listeners.
-
setChildrenListeners
Description copied from interface:TimeOutListenerIt sets child listener for this timeout listener.- Specified by:
setChildrenListenersin interfaceTimeOutListener- Parameters:
child- child listener for this timeout listener.
-