public interface TopologyData
Modifier and Type | Method and Description |
---|---|
Map<Vertex,Set<Edge>> |
broadcastPoints(DeviceId deviceId)
For a given Device Id, get a map of devices and
links on which a packet can be broadcast from the given deviceId.
|
Set<DeviceId> |
clusterDevices(TopologyCluster cluster)
Returns the set of devices that belong to the cluster.
|
TopologyCluster |
clusterFor(DeviceId deviceId)
Returns the topology cluster data containing the specified device.
|
Set<Link> |
clusterLinks(TopologyCluster cluster)
Returns the set of links that belong to the cluster.
|
Set<TopologyCluster> |
clusters()
Returns the set of connectivity clusters.
|
Set<Path> |
getPaths(DeviceId src,
DeviceId dst)
Returns the paths from the given source vertex to a given destination
vertex.
|
Set<Path> |
getPaths(DeviceId src,
DeviceId dst,
LinkWeight weight)
Get the set of shortest paths computed using the supplied edge weight.
|
Graph |
graph()
Returns the graph model of the network.
|
long |
ts()
Returns the timestamp (in nanos) of when the topology data was generated.
|
long ts()
Graph graph()
TopoVertex
and edges derivatives of
TopoEdge
classes.Set<Path> getPaths(DeviceId src, DeviceId dst)
src
- source device iddst
- destination device idSet<Path> getPaths(DeviceId src, DeviceId dst, LinkWeight weight)
src
- path sourcedst
- path destinationweight
- link edge weightMap<Vertex,Set<Edge>> broadcastPoints(DeviceId deviceId)
deviceId
- source device idSet<TopologyCluster> clusters()
TopologyCluster clusterFor(DeviceId deviceId)
deviceId
- source device idSet<DeviceId> clusterDevices(TopologyCluster cluster)
cluster
- to inspectSet<Link> clusterLinks(TopologyCluster cluster)
cluster
- to inspectCopyright © 2015. All Rights Reserved.