|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.DijkstraNode
Represents nodes of any graph which are useable with dijkstra
| Field Summary | |
protected java.util.HashSet |
edges
Collection which contains all outgoing edges of this node |
protected int |
id
The id of the node |
protected int |
shortestPathPredecessor
The index of the predecessor of this node on the shortest path to the source of a spanning tree in the underlying datastructure |
protected long |
stretch
The max weight value by which this node can be reached over edges |
| Constructor Summary | |
DijkstraNode(int id)
Constructor for class DijkstraNode |
|
DijkstraNode(int id,
long s,
int indexOfSpp)
Constructor for class DijkstraNode |
|
| Method Summary | |
void |
addDijkstraEdge(DijkstraEdge e)
Adds an edge to the outgoing edges of this node |
int |
compareTo(java.lang.Object o)
Method of the Comparable interface which compares two dijkstra nodes |
java.lang.String |
toString()
Returns a string value containing a description of this instance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected long stretch
protected final java.util.HashSet edges
protected int shortestPathPredecessor
protected final int id
| Constructor Detail |
public DijkstraNode(int id)
id - The id of the node
public DijkstraNode(int id,
long s,
int indexOfSpp)
s - The weight valueid - The id valueindexOfSpp - Description of the Parameter| Method Detail |
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - Object containing a dijkstra nod to compare this instance with
public void addDijkstraEdge(DijkstraEdge e)
e - The edge to be added.public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||