blob: 46c98722d814422230db9b025e3dda7e63e059ff [file] [log] [blame]
package org.onlab.onos.net.topology;
import org.onlab.onos.net.DeviceId;
/**
* Representation of an SCC (strongly-connected component) in a network topology.
*/
public interface TopologyCluster {
/**
* Returns the cluster id.
*
* @return cluster identifier
*/
ClusterId id();
/**
* Returns the number of devices in the cluster.
*
* @return number of cluster devices
*/
int deviceCount();
/**
* Returns the number of infrastructure links in the cluster.
*
* @return number of cluster links
*/
int linkCount();
/**
* Returns the device identifier of the cluster root device.
*
* @return cluster root device identifier
*/
DeviceId root();
}