de.upb.swtpra05.group03.shuttle
Class DijkstraEdge

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.DijkstraEdge
Direct Known Subclasses:
GraphEdge

public class DijkstraEdge
extends java.lang.Object

Represents edges of any graph which are useable with dijkstra

Version:
$Revision: 1.3 $

Field Summary
protected  DijkstraNode destination
          The destination station of the edge
protected  long weight
          The weight of the edge
 
Constructor Summary
DijkstraEdge(DijkstraNode dest, long w)
          Constructor for class DijkstraEdge
 
Method Summary
 java.lang.String toString()
          Returns a string which describes an instance of this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

destination

protected DijkstraNode destination
The destination station of the edge


weight

protected long weight
The weight of the edge

Constructor Detail

DijkstraEdge

public DijkstraEdge(DijkstraNode dest,
                    long w)
Constructor for class DijkstraEdge

Parameters:
dest - The destination of the edge
w - The weight of thr edge
Method Detail

toString

public java.lang.String toString()
Returns a string which describes an instance of this class

Returns:
A string describing the instance of this class