|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenlist.examples.WeightedDirectedGraph.Node
class WeightedDirectedGraph.Node
Node represents a node in the graph, along with distance and predecessor information used by Dijkstra's algorithm.
| Field Summary | |
|---|---|
(package private) OpenList<java.lang.Object> |
arcs
the list of out-going Arcs from this Node |
(package private) long |
distance
the distance of this Node from the source node |
(package private) Symbol |
name
the symbol giving the name of this Node |
(package private) WeightedDirectedGraph.Node |
predecessor
the predecessor of this Node on the shortest path from the source |
(package private) OpenList<java.lang.Object> |
raw
the symbolic OpenList specification of the node. |
| Constructor Summary | |
|---|---|
WeightedDirectedGraph.Node(java.lang.Object _raw)
Construct a node from a raw OpenList. |
|
| Method Summary | |
|---|---|
(package private) void |
internalizeNode()
Once we have all Nodes collected in raw form, internalize() processes s Node's targets, obtaining the reference to the the targets, as opposed to just the names of the targets. |
(package private) void |
retire()
retire() retires this Node in the execution of Dijkstra's algorithm. |
java.lang.String |
toString()
Return a String representation of the Node, for final output, in the order distance, name, and predecessor name (on the shortest path from the source). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
OpenList<java.lang.Object> raw
Symbol name
OpenList<java.lang.Object> arcs
long distance
WeightedDirectedGraph.Node predecessor
| Constructor Detail |
|---|
WeightedDirectedGraph.Node(java.lang.Object _raw)
_raw - OpenList that is expected to have the form
(| Method Detail |
|---|
void retire()
void internalizeNode()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||