|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javanetworkanalyzer.data.VId
org.javanetworkanalyzer.data.VPredImpl<V,E>
org.javanetworkanalyzer.data.VDijkstra<V,E>
V - Vertexpublic class VDijkstra<V extends VDijkstra,E>
Vertex to be used in the Dijkstra algorithm.
| Field Summary | |
|---|---|
static Double |
DEFAULT_DISTANCE
The default distance assigned to all nodes at the beginning of the Dijkstra algorithm. |
| Constructor Summary | |
|---|---|
VDijkstra(Integer id)
Constructor: Sets the id. |
|
| Method Summary | |
|---|---|
Double |
getDistance()
Returns the length of the shortest path from a source node to this node. |
void |
reset()
Clears the predecessor list and resets the distance to the default distance. |
void |
setDistance(Double newDistance)
Sets the new length of a shortest path from a source node to this node. |
void |
setSource()
Clears the predecessor list and sets the distance to zero. |
| Methods inherited from class org.javanetworkanalyzer.data.VPredImpl |
|---|
addPredecessor, addPredecessorEdge, clear, getPredecessorEdges, getPredecessors |
| Methods inherited from class org.javanetworkanalyzer.data.VId |
|---|
getID, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Double DEFAULT_DISTANCE
| Constructor Detail |
|---|
public VDijkstra(Integer id)
id - Id| Method Detail |
|---|
public Double getDistance()
VDist
getDistance in interface VDist<Double>public void setDistance(Double newDistance)
VDist
setDistance in interface VDist<Double>newDistance - Length of a shortest path to this node.public void reset()
reset in interface VDist<Double>public void setSource()
setSource in interface VDist<Double>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||