cz.cuni.amis.pogamut.udk.agent.navigation.stuckdetector
Class UDKTimeStuckDetector

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

public class UDKTimeStuckDetector
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
UDKTimeStuckDetector(UDKBot bot)
           
UDKTimeStuckDetector(UDKBot 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

UDKTimeStuckDetector

public UDKTimeStuckDetector(UDKBot bot)

UDKTimeStuckDetector

public UDKTimeStuckDetector(UDKBot 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.