|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.search.SimpleTimeOut
public class SimpleTimeOut
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.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
SimpleTimeOut()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean timeOutOccurred
public int solutionsNo
public TimeOutListener[] timeOutListeners
| Constructor Detail |
|---|
public SimpleTimeOut()
| Method Detail |
|---|
public void executedAtTimeOut(int solutionsNo)
TimeOutListener
executedAtTimeOut in interface TimeOutListenersolutionsNo - number of solutions found before the timeout occurred.public void setChildrenListeners(TimeOutListener[] children)
TimeOutListener
setChildrenListeners in interface TimeOutListenerchildren - list of children listeners.public void setChildrenListeners(TimeOutListener child)
TimeOutListener
setChildrenListeners in interface TimeOutListenerchild - child listener for this timeout listener.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||