tom | 43387f3 | 2014-08-27 14:42:43 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net; |
| 2 | |
| 3 | /** |
| 4 | * Represents a network topology computation snapshot. |
| 5 | */ |
tom | d1900f3 | 2014-09-03 14:08:16 -0700 | [diff] [blame] | 6 | public interface Topology extends Provided { |
tom | 43387f3 | 2014-08-27 14:42:43 -0700 | [diff] [blame] | 7 | |
| 8 | /** |
| 9 | * Returns the time, specified in milliseconds since start of epoch, |
| 10 | * when the topology became active and made available. |
| 11 | * |
| 12 | * @return time in milliseconds since start of epoch |
| 13 | */ |
| 14 | long time(); |
| 15 | |
| 16 | /** |
| 17 | * Returns the number of SCCs (strongly connected components) in the |
| 18 | * topology. |
| 19 | * |
| 20 | * @return number of clusters |
| 21 | */ |
| 22 | int clusterCount(); |
| 23 | |
| 24 | /** |
| 25 | * Returns the number of infrastructure devices in the topology. |
| 26 | * |
| 27 | * @return number of devices |
| 28 | */ |
| 29 | int deviceCount(); |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * Returns the number of infrastructure links in the topology. |
| 34 | * |
| 35 | * @return number of links |
| 36 | */ |
| 37 | int linkCount(); |
| 38 | |
| 39 | /** |
| 40 | * Returns the number of infrastructure paths computed between devices |
| 41 | * in the topology. This means the number of all the shortest paths |
| 42 | * (hop-count) between all device pairs. |
| 43 | * |
| 44 | * @return number of paths |
| 45 | */ |
| 46 | int pathCount(); |
| 47 | |
| 48 | } |