blob: c8a01e985cca3f8fd2ec1c53fc6f723315e647a0 [file] [log] [blame]
tom43387f32014-08-27 14:42:43 -07001package org.onlab.onos.net;
2
3/**
4 * Represents a network topology computation snapshot.
5 */
6public interface Topology {
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}