cz.cuni.amis.pogamut.ut2004.agent.navigation.timeoutestimator
Class UT2004BasicTimeoutEstimator<PATH_ELEMENT extends ILocated>

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.timeoutestimator.UT2004BasicTimeoutEstimator<PATH_ELEMENT>
All Implemented Interfaces:
IPathExecutionEstimator<PATH_ELEMENT>

public class UT2004BasicTimeoutEstimator<PATH_ELEMENT extends ILocated>
extends java.lang.Object
implements IPathExecutionEstimator<PATH_ELEMENT>


Constructor Summary
UT2004BasicTimeoutEstimator()
           
 
Method Summary
 double getTimeout(java.util.List<PATH_ELEMENT> path)
          Returns maximum amount of time (in ms) that is needed to follow the path and reach its end.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UT2004BasicTimeoutEstimator

public UT2004BasicTimeoutEstimator()
Method Detail

getTimeout

public double getTimeout(java.util.List<PATH_ELEMENT> path)
Description copied from interface: IPathExecutionEstimator
Returns maximum amount of time (in ms) that is needed to follow the path and reach its end.

Usually used to determine timeout for path execution by IPathExecutor.

Specified by:
getTimeout in interface IPathExecutionEstimator<PATH_ELEMENT extends ILocated>
Returns:
time in ms