cz.cuni.amis.pogamut.ut2004.agent.navigation.stuckdetector
Class UT2004TimeStuckDetector

Package class diagram package UT2004TimeStuckDetector
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.stuckdetector.UT2004TimeStuckDetector
All Implemented Interfaces:
IStuckDetector

public class UT2004TimeStuckDetector
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

Constructor Summary
UT2004TimeStuckDetector(UT2004Bot bot)
           
UT2004TimeStuckDetector(UT2004Bot bot, double timeoutMillis, double waitingTimeoutMillis)
           
 
Method Summary
 void eventSelf(IWorldObjectEvent<Self> event)
           
 boolean isStuck()
           
 void reset()
           
 void setBotTarget(ILocated target)
           
 void setBotWaiting(boolean state)
           
 void setEnabled(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UT2004TimeStuckDetector

public UT2004TimeStuckDetector(UT2004Bot bot)

UT2004TimeStuckDetector

public UT2004TimeStuckDetector(UT2004Bot bot,
                               double timeoutMillis,
                               double waitingTimeoutMillis)
Method Detail

eventSelf

public void eventSelf(IWorldObjectEvent<Self> 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 © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.