View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.agent.navigation;
2   
3   import java.util.List;
4   
5   import cz.cuni.amis.pogamut.base3d.worldview.object.ILocated;
6   import cz.cuni.amis.pogamut.unreal.agent.navigation.IUnrealPathExecutor;
7   import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointNeighbourLink;
8   
9   public interface IUT2004PathExecutor<PATH_ELEMENT extends ILocated> extends IUnrealPathExecutor<PATH_ELEMENT> {
10  	
11  	/**
12  	 * Merges current followed path with "morePath", i.e., it cuts off already passed elements and adds "morePath"
13  	 * to current path.
14  	 * 
15  	 * @param path
16  	 */
17  	public void extendPath(List<PATH_ELEMENT> morePath);
18  	
19  	/**
20  	 * Returns {@link NavPointNeighbourLink} the bot is currently running over.
21  	 * 
22  	 * Might be null if the link is unknown.
23  	 * 
24  	 * @return
25  	 */
26  	public NavPointNeighbourLink getCurrentLink();
27  
28  	/**
29  	 * Returns how far is our target (path-distance).
30  	 * @return
31  	 */
32  	public double getRemainingDistance();	
33  }