|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrcssjava.trainer.KeepawayTask
public class KeepawayTask
Enforces the keepaway rules and monitors/logs episode durations
| Constructor Summary | |
|---|---|
KeepawayTask(ServerParams sp,
WorldState ws,
TrainerCommandHandler cmd,
boolean launchMonitor,
int numKeepers,
int numTakers,
double kawayWidth,
double kawayLength,
java.lang.String kwyFile)
Constructs a keepaway task with the given options. |
|
| Method Summary | |
|---|---|
void |
init()
Initialize task by resetting the field setting playmode to PlayOn |
boolean |
processCycle()
Enforce rules for the previous cycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeepawayTask(ServerParams sp,
WorldState ws,
TrainerCommandHandler cmd,
boolean launchMonitor,
int numKeepers,
int numTakers,
double kawayWidth,
double kawayLength,
java.lang.String kwyFile)
| Method Detail |
|---|
public void init()
init in interface Taskpublic boolean processCycle()
processCycle in interface Taskfalse if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||