Package org.onosproject.net.topology
Class DefaultGraphDescription
- java.lang.Object
- 
- org.onosproject.net.AbstractDescription
- 
- org.onosproject.net.topology.DefaultGraphDescription
 
 
- 
- All Implemented Interfaces:
- Annotated,- Description,- GraphDescription
 
 public class DefaultGraphDescription extends AbstractDescription implements GraphDescription Default implementation of an immutable topology graph data carrier.
- 
- 
Constructor SummaryConstructors Constructor Description DefaultGraphDescription(long nanos, long millis, java.lang.Iterable<Device> devices, java.lang.Iterable<Link> links, SparseAnnotations... annotations)Creates a minimal topology graph description to allow core to construct and process the topology graph.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longcreationTime()Returns the creation timestamp of the graph description.com.google.common.collect.ImmutableSet<TopologyEdge>edges()Returns the set of topology graph edges.longtimestamp()Returns the creation timestamp of the graph description.com.google.common.collect.ImmutableSet<TopologyVertex>vertexes()Returns the set of topology graph vertexes.- 
Methods inherited from class org.onosproject.net.AbstractDescriptionannotations, equals, hashCode
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.onosproject.net.Descriptionannotations
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultGraphDescriptionpublic DefaultGraphDescription(long nanos, long millis, java.lang.Iterable<Device> devices, java.lang.Iterable<Link> links, SparseAnnotations... annotations)Creates a minimal topology graph description to allow core to construct and process the topology graph.- Parameters:
- nanos- time in nanos of when the topology description was created
- millis- time in millis of when the topology description was created
- devices- collection of infrastructure devices
- links- collection of infrastructure links
- annotations- optional key/value annotations map
 
 
- 
 - 
Method Detail- 
timestamppublic long timestamp() Description copied from interface:GraphDescriptionReturns the creation timestamp of the graph description. This is expressed in system nanos to allow proper sequencing.- Specified by:
- timestampin interface- GraphDescription
- Returns:
- graph description creation timestamp
 
 - 
creationTimepublic long creationTime() Description copied from interface:GraphDescriptionReturns the creation timestamp of the graph description. This is expressed in system millis to allow proper date and time formatting.- Specified by:
- creationTimein interface- GraphDescription
- Returns:
- graph description creation timestamp in millis
 
 - 
vertexespublic com.google.common.collect.ImmutableSet<TopologyVertex> vertexes() Description copied from interface:GraphDescriptionReturns the set of topology graph vertexes.- Specified by:
- vertexesin interface- GraphDescription
- Returns:
- set of graph vertexes
 
 - 
edgespublic com.google.common.collect.ImmutableSet<TopologyEdge> edges() Description copied from interface:GraphDescriptionReturns the set of topology graph edges.- Specified by:
- edgesin interface- GraphDescription
- Returns:
- set of graph edges
 
 
- 
 
-