|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmovement.map.DijkstraPathFinder
public class DijkstraPathFinder
Implementation of the Dijkstra's shortest path algorithm.
| Constructor Summary | |
|---|---|
DijkstraPathFinder(int[] okMapNodes)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.List<MapNode> |
getShortestPath(MapNode from,
MapNode to)
Finds and returns a shortest path between two map nodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DijkstraPathFinder(int[] okMapNodes)
okMapNodes - The map node types that are OK for paths or null if
all nodes are OK| Method Detail |
|---|
public java.util.List<MapNode> getShortestPath(MapNode from,
MapNode to)
from - The source of the pathto - The destination of the path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||