cz.cuni.amis.pogamut.base.agent.navigation
Interface IPathExecutionEstimator<PATH_ELEMENT>

Type Parameters:
PATH_ELEMENT -
All Known Implementing Classes:
UT2004BasicTimeoutEstimator

public interface IPathExecutionEstimator<PATH_ELEMENT>

Simple interface that defines a method for estimating timeout for traveling along the path.

Implementors can be used to provide maximum time (timeout) that is needed to reach the end of the path. It is useful for IPathExecutor so it won't stuck whenever the execution fails unexpectedly.


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.
 

Method Detail

getTimeout

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.

Usually used to determine timeout for path execution by IPathExecutor.

Parameters:
path -
Returns:
time in ms