Package org.opendaylight.graph.impl
Class ConnectedEdgeImpl
java.lang.Object
org.opendaylight.graph.impl.ConnectedEdgeImpl
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionConnectedEdgeImpl(@NonNull Long key) ConnectedEdgeImpl(@NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev220720.graph.topology.graph.Edge edge) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBandwidth(Long bw, int cos) voiddelBandwidth(Long bw, int cos) voidDisconnect both source and destination Connected Vertices.voidDisconnect destination Connected Vertex.voidDisconnect source Connected Vertex.getCosResvBandwidth(int cos) org.opendaylight.graph.ConnectedVertexorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev220720.graph.topology.graph.EdgegetEdge()@NonNull LonggetKey()org.opendaylight.graph.ConnectedVertexList<org.opendaylight.graph.ConnectedEdgeTrigger> booleanregisterTrigger(org.opendaylight.graph.ConnectedEdgeTrigger trigger, String key) setDestination(ConnectedVertexImpl vertex) Set Connected Vertex as destination.setEdge(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev220720.graph.topology.graph.Edge edge) Set associated Edge to this Connected Edge.setSource(ConnectedVertexImpl vertex) Set Connected Vertex as source.toString()Returns the name of the associated Edge if set or the interface address otherwise.booleanunRegisterTrigger(org.opendaylight.graph.ConnectedEdgeTrigger trigger, String key)
-
Constructor Details
-
ConnectedEdgeImpl
-
ConnectedEdgeImpl
public ConnectedEdgeImpl(@NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev220720.graph.topology.graph.Edge edge)
-
-
Method Details
-
setSource
Set Connected Vertex as source.- Parameters:
vertex- Vertex
-
setDestination
Set Connected Vertex as destination.- Parameters:
vertex- Vertex
-
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.rev220720.graph.topology.graph.Edge edge) Set associated Edge to this Connected Edge.- Parameters:
edge- Edge
-
getKey
- Specified by:
getKeyin interfaceorg.opendaylight.graph.ConnectedEdge
-
getSource
public org.opendaylight.graph.ConnectedVertex getSource()- Specified by:
getSourcein interfaceorg.opendaylight.graph.ConnectedEdge
-
getDestination
public org.opendaylight.graph.ConnectedVertex getDestination()- Specified by:
getDestinationin interfaceorg.opendaylight.graph.ConnectedEdge
-
getEdge
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev220720.graph.topology.graph.Edge getEdge()- Specified by:
getEdgein interfaceorg.opendaylight.graph.ConnectedEdge
-
getGlobalResvBandwidth
- Specified by:
getGlobalResvBandwidthin interfaceorg.opendaylight.graph.ConnectedEdge
-
getCosResvBandwidth
- Specified by:
getCosResvBandwidthin interfaceorg.opendaylight.graph.ConnectedEdge
-
addBandwidth
- Specified by:
addBandwidthin interfaceorg.opendaylight.graph.ConnectedEdge
-
delBandwidth
- Specified by:
delBandwidthin interfaceorg.opendaylight.graph.ConnectedEdge
-
registerTrigger
- Specified by:
registerTriggerin interfaceorg.opendaylight.graph.ConnectedEdge
-
unRegisterTrigger
- Specified by:
unRegisterTriggerin interfaceorg.opendaylight.graph.ConnectedEdge
-
getTriggers
-
toString
Returns the name of the associated Edge if set or the interface address otherwise.
-