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