com.TeamHEC.LocomotionCommotion.Goal.Graph
Class Node

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.Goal.Graph.Node
All Implemented Interfaces:
java.lang.Comparable<Node>

public class Node
extends java.lang.Object
implements java.lang.Comparable<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

mapobj

public final MapObj mapobj
refers to the instance of the station attached to this node


edges

public java.util.ArrayList<Edge> edges

minDistance

public double minDistance
minDistance the tentative distance, set to infinity all the time according to dijkstras


next

public Node next
next refers to the following node.

Constructor Detail

Node

public Node(MapObj st)
creates a new node for a given instance of a station/junction

Parameters:
st -
Method Detail

compareTo

public int compareTo(Node other)
Necessary to compare in the compute paths class

Specified by:
compareTo in interface java.lang.Comparable<Node>