|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.TeamHEC.LocomotionCommotion.Goal.Graph.Node
public class Node
| Field Summary | |
|---|---|
java.util.ArrayList<Edge> |
edges
|
MapObj |
mapobj
refers to the instance of the station attached to this node |
double |
minDistance
minDistance the tentative distance, set to infinity all the time according to dijkstras |
Node |
next
next refers to the following node. |
| Constructor Summary | |
|---|---|
Node(MapObj st)
creates a new node for a given instance of a station/junction |
|
| Method Summary | |
|---|---|
int |
compareTo(Node other)
Necessary to compare in the compute paths class |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final MapObj mapobj
public java.util.ArrayList<Edge> edges
public double minDistance
public Node next
| Constructor Detail |
|---|
public Node(MapObj st)
st - | Method Detail |
|---|
public int compareTo(Node other)
compareTo in interface java.lang.Comparable<Node>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||