cz.cuni.amis.pogamut.ut2004.agent.navigation.astar
Class UT2004PFTask

Package class diagram package UT2004PFTask
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.astar.UT2004PFTask
All Implemented Interfaces:
cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>
Direct Known Subclasses:
UT2004PFGoal

public abstract class UT2004PFTask
extends Object
implements cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>

Use amis-path-finding library instead, see AStar or FloydWarshall.

Uses standard 3D-Euclidian distance between NavPoints as the heuristic.

Author:
Jimmy

Constructor Summary
UT2004PFTask(NavPoint startNode)
           
 
Method Summary
 Set<NavPoint> getClosedList()
          The closed list of the path-finding algorithm.
 int getEstimatedCostToGoal(NavPoint node)
           
 cz.cuni.amis.utils.heap.IHeap<NavPoint> getOpenList()
          The open list of the path-finding algorithm.
 NavPoint getStart()
           
abstract  boolean isGoalReached(NavPoint actualNode)
           
 void setCloseList(Set<NavPoint> closedList)
           
 void setOpenList(cz.cuni.amis.utils.heap.IHeap<NavPoint> openList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UT2004PFTask

public UT2004PFTask(NavPoint startNode)
Method Detail

setOpenList

public void setOpenList(cz.cuni.amis.utils.heap.IHeap<NavPoint> openList)
Specified by:
setOpenList in interface cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>

setCloseList

public void setCloseList(Set<NavPoint> closedList)
Specified by:
setCloseList in interface cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>

getOpenList

public cz.cuni.amis.utils.heap.IHeap<NavPoint> getOpenList()
The open list of the path-finding algorithm.

IMMUTABLE! DON'T CHANGE IT!

Parameters:
openList -

getClosedList

public Set<NavPoint> getClosedList()
The closed list of the path-finding algorithm.

IMMUTABLE! DON'T CHANGE IT!


getStart

public NavPoint getStart()
Specified by:
getStart in interface cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>

isGoalReached

public abstract boolean isGoalReached(NavPoint actualNode)
Specified by:
isGoalReached in interface cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>

getEstimatedCostToGoal

public int getEstimatedCostToGoal(NavPoint node)
Specified by:
getEstimatedCostToGoal in interface cz.cuni.amis.pathfinding.map.IPFGoal<NavPoint>


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