|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.agent.navigation.stuckdetector.UT2004TimeStuckDetector
public class UT2004TimeStuckDetector
Simple 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 Summary | |
---|---|
UT2004TimeStuckDetector(UT2004Bot bot)
|
|
UT2004TimeStuckDetector(UT2004Bot bot,
double timeout,
double waitingTimeout)
|
Method Summary | |
---|---|
void |
eventSelf(IWorldObjectEvent<Self> event)
|
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 |
setBotWaiting(boolean state)
Tells the stuck detector, that the bot is waiting for something, thus the detector should not detect stuck! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UT2004TimeStuckDetector(UT2004Bot bot)
public UT2004TimeStuckDetector(UT2004Bot bot, double timeout, double waitingTimeout)
Method Detail |
---|
public void eventSelf(IWorldObjectEvent<Self> event)
public void setBotWaiting(boolean state)
IStuckDetector
setBotWaiting
in interface IStuckDetector
public boolean isStuck()
IStuckDetector
isStuck
in interface IStuckDetector
public void reset()
IStuckDetector
If IStuckDetector.isStuck()
was reporting true, it should report 'false' after
the reset (until next stuck is detected).
reset
in interface IStuckDetector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |