cz.cuni.amis.pogamut.base.agent.navigation
Interface IStuckDetector

All Known Implementing Classes:
UT2004PositionHistoryStuckDetector, UT2004TimeStuckDetector

public interface IStuckDetector

Stuck detector provides a functionality to detect the situation in which the bot is unable to reach its destination. Stuck detector does that (usually) based on some heuristics.


Method Summary
 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!
 

Method Detail

setBotWaiting

void setBotWaiting(boolean state)
Tells the stuck detector, that the bot is waiting for something, thus the detector should not detect stuck!

Parameters:
state -

isStuck

boolean isStuck()
Tells whether the detector has detected a stuck.

Returns:

reset

void reset()
Restarts the detector - this method is called just before the executor starts to follow the path.

If isStuck() was reporting true, it should report 'false' after the reset (until next stuck is detected).