public class SimpleTimeOut extends Object implements TimeOutListener
| Modifier and Type | Field and Description |
|---|---|
int |
solutionsNo
It records number of found solutions.
|
TimeOutListener[] |
timeOutListeners
It contains child(ren) of this timeout listener.
|
boolean |
timeOutOccurred
It specifies if the timeout has already occurred.
|
| Constructor and Description |
|---|
SimpleTimeOut() |
| Modifier and Type | Method and 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.
|
public boolean timeOutOccurred
public int solutionsNo
public TimeOutListener[] timeOutListeners
public void executedAtTimeOut(int solutionsNo)
TimeOutListenerexecutedAtTimeOut in interface TimeOutListenersolutionsNo - number of solutions found before the timeout occurred.public void setChildrenListeners(TimeOutListener[] children)
TimeOutListenersetChildrenListeners in interface TimeOutListenerchildren - list of children listeners.public void setChildrenListeners(TimeOutListener child)
TimeOutListenersetChildrenListeners in interface TimeOutListenerchild - child listener for this timeout listener.Copyright © 2022. All rights reserved.