| Constructor and Description |
|---|
AStarGraph(Map<Q,Map<Q,Double>> heuristicMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(Q nodeIdFirst,
Q nodeIdSecond,
double length)
Adds an edge from source node to destination node.
|
void |
addNode(Q id)
Adds a new node to the graph.
|
Map<AStarNode<Q>,Double> |
edgesFrom(Q id)
Returns immutable view of the edges
|
AStarNode<Q> |
getNodeData(Q id)
The nodedata corresponding to the current nodeId.
|
Iterator<Q> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void addNode(Q id)
id - the node to be addedpublic void addEdge(Q nodeIdFirst, Q nodeIdSecond, double length)
nodeIdFirst - the first node to be in the edgenodeIdSecond - the second node to be second node in the edgelength - the length of the edge.public Map<AStarNode<Q>,Double> edgesFrom(Q id)
id - the nodeId whose outgoing edge needs to be returnedpublic AStarNode<Q> getNodeData(Q id)
id - the nodeId to be returnedCopyright © 2018 Terra Software Informatics LLC.. All rights reserved.