public class UT2004TimeStuckDetector extends Object implements IStuckDetector
IStuckDetector that watches whether the bot moves at all.
You may define a period of time (timeout) in which the bot should move on, i.e., if the bot won't move a bit in a specified amount of time, it will report a stuck.
| Constructor and Description |
|---|
UT2004TimeStuckDetector(UT2004Bot bot) |
UT2004TimeStuckDetector(UT2004Bot bot,
double timeoutMillis,
double waitingTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
eventSelf(IWorldObjectEvent<Self> event) |
boolean |
isStuck() |
void |
reset() |
void |
setBotTarget(ILocated target) |
void |
setBotWaiting(boolean state) |
void |
setEnabled(boolean state) |
public UT2004TimeStuckDetector(UT2004Bot bot)
public UT2004TimeStuckDetector(UT2004Bot bot, double timeoutMillis, double waitingTimeoutMillis)
public void eventSelf(IWorldObjectEvent<Self> event)
public void setEnabled(boolean state)
setEnabled in interface IStuckDetectorpublic void setBotWaiting(boolean state)
setBotWaiting in interface IStuckDetectorpublic boolean isStuck()
isStuck in interface IStuckDetectorpublic void reset()
reset in interface IStuckDetectorpublic void setBotTarget(ILocated target)
setBotTarget in interface IStuckDetectorCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.