tom | 9793755 | 2014-09-11 10:48:42 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.topology; |
| 2 | |
| 3 | import com.google.common.collect.ImmutableSet; |
| 4 | import org.onlab.onos.net.Description; |
| 5 | |
| 6 | /** |
| 7 | * Describes attribute(s) of a network graph. |
| 8 | */ |
| 9 | public 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 | |