Interface Graph

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Graph>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<GraphTopology>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<GraphKey>

    public interface Graph
    extends org.opendaylight.yangtools.yang.binding.ChildOf<GraphTopology>, org.opendaylight.yangtools.yang.binding.Augmentable<Graph>, org.opendaylight.yangtools.yang.binding.Identifiable<GraphKey>
    Graph representation of the Network Topology

    This class represents the following YANG schema fragment defined in module graph

     list graph {
       key name;
       leaf name {
         type string;
       }
       leaf domain-scope {
         type enumeration {
           enum intra-domain {
             value 1;
           }
           enum inter-domain {
             value 2;
           }
         }
         default intra-domain;
       }
       leaf asn {
         type uint32;
       }
       list vertex {
         key vertex-id;
         uses vertex;
       }
       list edge {
         key edge-id;
         uses edge;
       }
       list prefix {
         key prefix;
         uses prefix;
       }
     }
     
    The schema path to identify an instance is graph/graph-topology/graph

    To create instances of this class use GraphBuilder.

    See Also:
    GraphBuilder, GraphKey
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<Graph> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getName

        @Nullable String getName()
        Returns:
        java.lang.String name, or null if not present
      • getDomainScope

        @Nullable Graph.DomainScope getDomainScope()
        Network domain scope: intra or inter domain
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.Graph.DomainScope domainScope, or null if not present
      • getAsn

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getAsn()
        AS Number
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 asn, or null if not present
      • getVertex

        @Nullable List<Vertex> getVertex()
        The list of Vertices defined for the Graph.
        Returns:
        java.util.List vertex, or null if not present
      • nonnullVertex

        default @NonNull List<Vertex> nonnullVertex()
        Returns:
        java.util.List vertex, or an empty list if it is not present
      • getEdge

        @Nullable List<Edge> getEdge()
        The list of Edges defined for the Graph.
        Returns:
        java.util.List edge, or null if not present
      • nonnullEdge

        default @NonNull List<Edge> nonnullEdge()
        Returns:
        java.util.List edge, or an empty list if it is not present
      • getPrefix

        @Nullable List<Prefix> getPrefix()
        The list of prefixes for the Graph.
        Returns:
        java.util.List prefix, or null if not present
      • nonnullPrefix

        default @NonNull List<Prefix> nonnullPrefix()
        Returns:
        java.util.List prefix, or an empty list if it is not present
      • key

        GraphKey key()
        Specified by:
        key in interface org.opendaylight.yangtools.yang.binding.Identifiable<GraphKey>