public class ModifiedDijkstraSP extends Object
ClosestFirstIterator.| Constructor and Description |
|---|
ModifiedDijkstraSP(org.jgrapht.graph.SimpleDirectedWeightedGraph<Object,es.tid.tedb.IntraDomainEdge> graph,
Object startVertex,
Object endVertex,
ArrayList<es.tid.ospf.ospfv2.lsa.tlv.subtlv.complexFields.BitmapLabelSet> SetChannels,
int num_slots)
Creates and executes a new DijkstraShortestPath algorithm instance.
|
ModifiedDijkstraSP(org.jgrapht.graph.SimpleDirectedWeightedGraph<Object,es.tid.tedb.IntraDomainEdge> graph,
Object startVertex,
Object endVertex,
double radius,
ArrayList<es.tid.ospf.ospfv2.lsa.tlv.subtlv.complexFields.BitmapLabelSet> SetChannels,
int num_slots)
Creates and executes a new DijkstraShortestPath algorithm instance.
|
| Modifier and Type | Method and Description |
|---|---|
static List<es.tid.tedb.IntraDomainEdge> |
findPathBetween(org.jgrapht.graph.SimpleDirectedWeightedGraph<Object,es.tid.tedb.IntraDomainEdge> graph,
Object startVertex,
Object endVertex)
Convenience method to find the shortest path via a single static method
call.
|
org.jgrapht.GraphPath<Object,es.tid.tedb.IntraDomainEdge> |
getPath()
Return the path found.
|
List<es.tid.tedb.IntraDomainEdge> |
getPathEdgeList()
Return the edges making up the path found.
|
double |
getPathLength()
Return the length of the path found.
|
Hashtable<Object,BitmapChannelState> |
getVertexSpectrumState() |
public ModifiedDijkstraSP(org.jgrapht.graph.SimpleDirectedWeightedGraph<Object,es.tid.tedb.IntraDomainEdge> graph, Object startVertex, Object endVertex, ArrayList<es.tid.ospf.ospfv2.lsa.tlv.subtlv.complexFields.BitmapLabelSet> SetChannels, int num_slots)
graph - the graph to be searchedstartVertex - the vertex at which the path should startendVertex - the vertex at which the path should endSetChannels - SetChannelsnum_slots - num_slotspublic ModifiedDijkstraSP(org.jgrapht.graph.SimpleDirectedWeightedGraph<Object,es.tid.tedb.IntraDomainEdge> graph, Object startVertex, Object endVertex, double radius, ArrayList<es.tid.ospf.ospfv2.lsa.tlv.subtlv.complexFields.BitmapLabelSet> SetChannels, int num_slots)
graph - the graph to be searchedstartVertex - the vertex at which the path should startendVertex - the vertex at which the path should endradius - limit on path length, or Double.POSITIVE_INFINITY for
unbounded searchSetChannels - SetChannelsnum_slots - num_slotspublic List<es.tid.tedb.IntraDomainEdge> getPathEdgeList()
public org.jgrapht.GraphPath<Object,es.tid.tedb.IntraDomainEdge> getPath()
public double getPathLength()
public static List<es.tid.tedb.IntraDomainEdge> findPathBetween(org.jgrapht.graph.SimpleDirectedWeightedGraph<Object,es.tid.tedb.IntraDomainEdge> graph, Object startVertex, Object endVertex)
graph - the graph to be searchedstartVertex - the vertex at which the path should startendVertex - the vertex at which the path should endpublic Hashtable<Object,BitmapChannelState> getVertexSpectrumState()
Copyright © 2016. All rights reserved.