tom | 568581d | 2014-09-08 20:13:36 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.topology; |
| 2 | |
tom | cfde062 | 2014-09-09 11:02:42 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.DeviceId; |
| 4 | |
tom | 568581d | 2014-09-08 20:13:36 -0700 | [diff] [blame] | 5 | /** |
| 6 | * Representation of an SCC (strongly-connected component) in a network topology. |
| 7 | */ |
| 8 | public interface TopologyCluster { |
| 9 | |
tom | cfde062 | 2014-09-09 11:02:42 -0700 | [diff] [blame] | 10 | /** |
| 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(); |
tom | 568581d | 2014-09-08 20:13:36 -0700 | [diff] [blame] | 37 | |
| 38 | } |