Package org.onosproject.net.topology
Interface TopologyCluster
-
- All Known Implementing Classes:
DefaultTopologyCluster
public interface TopologyCluster
Representation of an SCC (strongly-connected component) in a network topology.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
deviceCount()
Returns the number of devices in the cluster.ClusterId
id()
Returns the cluster id.int
linkCount()
Returns the number of infrastructure links in the cluster.TopologyVertex
root()
Returns the cluster root vertex.
-
-
-
Method Detail
-
id
ClusterId id()
Returns the cluster id.- Returns:
- cluster identifier
-
deviceCount
int deviceCount()
Returns the number of devices in the cluster.- Returns:
- number of cluster devices
-
linkCount
int linkCount()
Returns the number of infrastructure links in the cluster.- Returns:
- number of cluster links
-
root
TopologyVertex root()
Returns the cluster root vertex.- Returns:
- cluster root vertex
-
-