public interface IStuckDetector
| Modifier and Type | Method and Description |
|---|---|
String |
getStuckDetails()
Returns human-readable string describing why the bot has stuck.
|
boolean |
isStuck()
Tells whether the detector has detected a stuck.
|
void |
reset()
Restarts the detector - this method is called just before the executor
starts to follow the path.
|
void |
setBotTarget(ILocated target)
Where the bot is currently trying to get with DIRECT MOVEMENT (possibly with JUMPS).
|
void |
setBotWaiting(boolean state)
Tells the stuck detector, that the bot is waiting for something, thus the detector should not detect stuck!
|
void |
setEnabled(boolean state)
Enable / Disable stuck detector.
|
void setEnabled(boolean state)
void setBotWaiting(boolean state)
state - void setBotTarget(ILocated target)
target - boolean isStuck()
String getStuckDetails()
isStuck(), otherwise may contain null or arbitrary meaningless string.void reset()
If isStuck() was reporting true, it should report 'false' after
the reset (until next stuck is detected).
Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.