|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectshortestPAlgorithms.Astar
public class Astar
A* shortest path algorithm
Constructor Summary | |
---|---|
Astar()
|
Method Summary | |
---|---|
Stack |
get_shortest_path(int[][] grid,
int s_x,
int s_y,
int t_x,
int t_y)
Gets shortest path between two points using a* shortest path algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Astar()
Method Detail |
---|
public Stack get_shortest_path(int[][] grid, int s_x, int s_y, int t_x, int t_y)
size
- size of the map (size * size = number of nodes)s_x
- Starting point x coordinate.s_y
- Starting point y coordinate.t_x
- Target point x coordinate.t_y
- Target point y coordinate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |