|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.graph.alg.AStar<N,E>
N - the node typeE - the edge typepublic class AStar<N,E extends Edge<N>>
Implementation of the A* path finding algorithm.
| Constructor Summary | |
|---|---|
AStar(Graph<N,E> graph,
CostFunction<N,E> cost,
N start,
N goal)
Instantiates a new A*. |
|
AStar(Graph<N,E> graph,
CostFunction<N,E> cost,
N start,
N goal,
GraphElementFilter<N> nodeFilter)
Instantiates a new A*. |
|
AStar(Graph<N,E> graph,
CostFunction<N,E> cost,
N start,
N goal,
GraphElementFilter<N> nodeFilter,
GraphElementFilter<Edge<N>> edgeFilter)
Instantiates a new A*. |
|
| Method Summary | |
|---|---|
Path<N,E> |
getShortestPath()
Determines the shortest path, i.e. the path with minimum overall cost from start to goal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AStar(Graph<N,E> graph,
CostFunction<N,E> cost,
N start,
N goal)
graph - the graph to find a path incost - the function providing information about graph traversal costsstart - the start node in the graphgoal - the goal node in the graph
public AStar(Graph<N,E> graph,
CostFunction<N,E> cost,
N start,
N goal,
GraphElementFilter<N> nodeFilter)
graph - the graph to find a path incost - the function providing information about graph traversal costsstart - the start node in the graphgoal - the goal node in the graphnodeFilter - the filter specifying whether a node may be traversed or must not be included in the path
public AStar(Graph<N,E> graph,
CostFunction<N,E> cost,
N start,
N goal,
GraphElementFilter<N> nodeFilter,
GraphElementFilter<Edge<N>> edgeFilter)
graph - the graph to find a path incost - the function providing information about graph traversal costsstart - the start node in the graphgoal - the goal node in the graphnodeFilter - the filter specifying whether a node may be traversed or must not be included in the pathedgeFilter - the filter specifying whether an edge may be traversed or must not be included in the path| Method Detail |
|---|
public Path<N,E> getShortestPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||