Class ConnectedVertexImpl

  • All Implemented Interfaces:
    org.opendaylight.graph.ConnectedVertex

    public class ConnectedVertexImpl
    extends Object
    implements org.opendaylight.graph.ConnectedVertex
    This Class implements the Connected Vertex used by the Connected Graph for path computation algorithms.
    Author:
    Olivier Dugeon, Philippe Niger
    • Constructor Detail

      • ConnectedVertexImpl

        public ConnectedVertexImpl​(@NonNull Long key)
      • ConnectedVertexImpl

        public ConnectedVertexImpl​(@NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Vertex vertex)
    • Method Detail

      • setVertex

        public ConnectedVertexImpl setVertex​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Vertex vertex)
        Set associated Vertex to this Connected Vertex.
        Parameters:
        vertex - Vertex
      • disconnect

        public void disconnect()
        Disconnect all input and output Connected Edge.
      • addPrefix

        public ConnectedVertexImpl addPrefix​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix prefix)
        Add Prefix to this Connected Vertex.
        Parameters:
        prefix - Prefix
      • removePrefix

        public void removePrefix​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix prefix)
        Remove Prefix.
        Parameters:
        prefix - Prefix
      • getKey

        public Long getKey()
        Specified by:
        getKey in interface org.opendaylight.graph.ConnectedVertex
      • getVertex

        public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Vertex getVertex()
        Specified by:
        getVertex in interface org.opendaylight.graph.ConnectedVertex
      • getEdgeTo

        public List<org.opendaylight.graph.ConnectedEdge> getEdgeTo​(Long dstRid)
        Specified by:
        getEdgeTo in interface org.opendaylight.graph.ConnectedVertex
      • getInputEdges

        public List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge> getInputEdges()
        Specified by:
        getInputEdges in interface org.opendaylight.graph.ConnectedVertex
      • getInputConnectedEdges

        public List<org.opendaylight.graph.ConnectedEdge> getInputConnectedEdges()
        Specified by:
        getInputConnectedEdges in interface org.opendaylight.graph.ConnectedVertex
      • getOutputEdges

        public List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge> getOutputEdges()
        Specified by:
        getOutputEdges in interface org.opendaylight.graph.ConnectedVertex
      • getOutputConnectedEdges

        public List<org.opendaylight.graph.ConnectedEdge> getOutputConnectedEdges()
        Specified by:
        getOutputConnectedEdges in interface org.opendaylight.graph.ConnectedVertex
      • getPrefixes

        public List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix> getPrefixes()
        Specified by:
        getPrefixes in interface org.opendaylight.graph.ConnectedVertex
      • registerTrigger

        public boolean registerTrigger​(org.opendaylight.graph.ConnectedVertexTrigger trigger,
                                       String key)
        Specified by:
        registerTrigger in interface org.opendaylight.graph.ConnectedVertex
      • unRegisterTrigger

        public boolean unRegisterTrigger​(org.opendaylight.graph.ConnectedVertexTrigger trigger,
                                         String key)
        Specified by:
        unRegisterTrigger in interface org.opendaylight.graph.ConnectedVertex
      • getTriggers

        public List<org.opendaylight.graph.ConnectedVertexTrigger> getTriggers()
      • toString

        public String toString()
        Return the name of the associated Vertex if set or the router-id otherwise.
        Overrides:
        toString in class Object
        Returns:
        Vertex name or router-id