Class ConnectedEdgeImpl

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

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

      • ConnectedEdgeImpl

        public ConnectedEdgeImpl​(@NonNull Long key)
      • ConnectedEdgeImpl

        public ConnectedEdgeImpl​(@NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge edge)
    • Method Detail

      • disconnectSource

        public void disconnectSource()
        Disconnect source Connected Vertex.
      • disconnectDestination

        public void disconnectDestination()
        Disconnect destination Connected Vertex.
      • disconnect

        public void disconnect()
        Disconnect both source and destination Connected Vertices.
      • setEdge

        public ConnectedEdgeImpl setEdge​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge edge)
        Set associated Edge to this Connected Edge.
        Parameters:
        edge - Edge
      • getKey

        public @NonNull Long getKey()
        Specified by:
        getKey in interface org.opendaylight.graph.ConnectedEdge
      • getSource

        public org.opendaylight.graph.ConnectedVertex getSource()
        Specified by:
        getSource in interface org.opendaylight.graph.ConnectedEdge
      • getDestination

        public org.opendaylight.graph.ConnectedVertex getDestination()
        Specified by:
        getDestination in interface org.opendaylight.graph.ConnectedEdge
      • getEdge

        public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge getEdge()
        Specified by:
        getEdge in interface org.opendaylight.graph.ConnectedEdge
      • getGlobalResvBandwidth

        public Long getGlobalResvBandwidth()
        Specified by:
        getGlobalResvBandwidth in interface org.opendaylight.graph.ConnectedEdge
      • getCosResvBandwidth

        public Long getCosResvBandwidth​(int cos)
        Specified by:
        getCosResvBandwidth in interface org.opendaylight.graph.ConnectedEdge
      • addBandwidth

        public void addBandwidth​(Long bw,
                                 int cos)
        Specified by:
        addBandwidth in interface org.opendaylight.graph.ConnectedEdge
      • delBandwidth

        public void delBandwidth​(Long bw,
                                 int cos)
        Specified by:
        delBandwidth in interface org.opendaylight.graph.ConnectedEdge
      • registerTrigger

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

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

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

        public String toString()
        Returns the name of the associated Edge if set or the interface address otherwise.
        Overrides:
        toString in class Object
        Returns:
        Edge name or interface address