|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.genethello.brain.TimeManagement
public class TimeManagement
Class to manage thinking time based on remaining time quota and normal distribution along the step.
| Constructor Summary | |
|---|---|
TimeManagement(long timeQuota)
Creates time management with thinking time quota. |
|
| Method Summary | |
|---|---|
void |
cancelTimer()
Cancels stopping timer upon thinking completion. |
void |
scheduleTimer(java.util.TimerTask task,
int step)
Executes timer task to stop thinking process upon time up. |
boolean |
timesUp(long l)
Marks time is up if remaining step time is considered not enough. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeManagement(long timeQuota)
timeQuota - quota of thinking time (in ms)| Method Detail |
|---|
public void scheduleTimer(java.util.TimerTask task,
int step)
task - timer task to executestep - current steppublic void cancelTimer()
public boolean timesUp(long l)
l - total thinking time of previous depth
|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||