blob: 46c98722d814422230db9b025e3dda7e63e059ff [file] [log] [blame]
tom568581d2014-09-08 20:13:36 -07001package org.onlab.onos.net.topology;
2
tomcfde0622014-09-09 11:02:42 -07003import org.onlab.onos.net.DeviceId;
4
tom568581d2014-09-08 20:13:36 -07005/**
6 * Representation of an SCC (strongly-connected component) in a network topology.
7 */
8public interface TopologyCluster {
9
tomcfde0622014-09-09 11:02:42 -070010 /**
11 * Returns the cluster id.
12 *
13 * @return cluster identifier
14 */
15 ClusterId id();
16
17 /**
18 * Returns the number of devices in the cluster.
19 *
20 * @return number of cluster devices
21 */
22 int deviceCount();
23
24 /**
25 * Returns the number of infrastructure links in the cluster.
26 *
27 * @return number of cluster links
28 */
29 int linkCount();
30
31 /**
32 * Returns the device identifier of the cluster root device.
33 *
34 * @return cluster root device identifier
35 */
36 DeviceId root();
tom568581d2014-09-08 20:13:36 -070037
38}