blob: 2b846a08daeca52e08512396072aef14dfded94f [file] [log] [blame]
tom97937552014-09-11 10:48:42 -07001package org.onlab.onos.net.topology;
2
3import com.google.common.collect.ImmutableSet;
4import org.onlab.onos.net.Description;
5
6/**
7 * Describes attribute(s) of a network graph.
8 */
9public interface GraphDescription extends Description {
10
11 /**
12 * Returns the creation timestamp of the graph description. This is
13 * expressed in system nanos to allow proper sequencing.
14 *
15 * @return graph description creation timestamp
16 */
17 long timestamp();
18
19 /**
20 * Returns the set of topology graph vertexes.
21 *
22 * @return set of graph vertexes
23 */
24 ImmutableSet<TopologyVertex> vertexes();
25
26 /**
27 * Returns the set of topology graph edges.
28 *
29 * @return set of graph edges
30 */
31 ImmutableSet<TopologyEdge> edges();
32
33}
34