cz.cuni.amis.pogamut.ut2004.agent.navigation.stuckdetector
Class AccUT2004TimeStuckDetector
java.lang.Object
cz.cuni.amis.pogamut.ut2004.agent.navigation.stuckdetector.AccUT2004TimeStuckDetector
- All Implemented Interfaces:
- IStuckDetector
public class AccUT2004TimeStuckDetector
- extends Object
- implements IStuckDetector
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.
- Author:
- Jimmy, knight, Bogo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccUT2004TimeStuckDetector
public AccUT2004TimeStuckDetector(UT2004Bot bot)
AccUT2004TimeStuckDetector
public AccUT2004TimeStuckDetector(UT2004Bot bot,
double timeoutMillis,
double waitingTimeoutMillis)
eventSelf
public void eventSelf(IWorldObjectEvent<Self> event)
eventEndMessage
public void eventEndMessage(EndMessage event)
setEnabled
public void setEnabled(boolean state)
- Specified by:
setEnabled
in interface IStuckDetector
setBotWaiting
public void setBotWaiting(boolean state)
- Specified by:
setBotWaiting
in interface IStuckDetector
isStuck
public boolean isStuck()
- Specified by:
isStuck
in interface IStuckDetector
reset
public void reset()
- Specified by:
reset
in interface IStuckDetector
setBotTarget
public void setBotTarget(ILocated target)
- Specified by:
setBotTarget
in interface IStuckDetector
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.