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

Package class diagram package IPathExecutionEstimator
Type Parameters:
PATH_ELEMENT -

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.

Author:
Jimmy

Method Summary
 double getTimeout(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(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


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.