Package org.opendaylight.graph.impl
Class ConnectedVertexImpl
java.lang.Object
org.opendaylight.graph.impl.ConnectedVertexImpl
- All Implemented Interfaces:
ConnectedVertex
This Class implements the Connected Vertex used by the Connected Graph for path computation algorithms.
- Author:
- Olivier Dugeon, Philippe Niger
-
Constructor Summary
ConstructorDescriptionConnectedVertexImpl
(@NonNull Long key) ConnectedVertexImpl
(@NonNull Vertex vertex) -
Method Summary
Modifier and TypeMethodDescriptionaddInput
(ConnectedEdgeImpl edge) Add Connected Edge as input edge.addOutput
(ConnectedEdgeImpl edge) Add Connected Edge as output edge.Add Prefix to this Connected Vertex.void
Disconnect all input and output Connected Edge.Returns Connected Edges that has for destination the Connected Vertex identified by its key.Returns the list of incoming Connected Edge for this Connected Vertex.Returns the list of incoming Edge for this Connected Vertex.getKey()
Returns unique key associated to this Connected Vertex.Returns the list of outgoing Connected Edge for this Connected Vertex.Returns the list of outgoing Edge for this Connected Vertex.Return the list of prefix announced by this Connected Vertex.Returns Vertex associated to this Connected Vertex.boolean
registerTrigger
(ConnectedVertexTrigger trigger, String key) Register a trigger that is executed when a problem occurs on the Connected Vertex.removeInput
(ConnectedEdgeImpl edge) Remove input Connected Edge.Remove output Connected Edge.void
removePrefix
(Prefix prefix) Remove Prefix.Set associated Vertex to this Connected Vertex.toString()
Return the name of the associated Vertex if set or the router-id otherwise.boolean
unRegisterTrigger
(ConnectedVertexTrigger trigger, String key) Un-register a trigger that is already registered on the Connected Vertex.
-
Constructor Details
-
ConnectedVertexImpl
-
ConnectedVertexImpl
-
-
Method Details
-
setVertex
Set associated Vertex to this Connected Vertex.- Parameters:
vertex
- Vertex
-
addInput
Add Connected Edge as input edge.- Parameters:
edge
- Connected Edge
-
addOutput
Add Connected Edge as output edge.- Parameters:
edge
- Connected Edge
-
removeInput
Remove input Connected Edge.- Parameters:
edge
- Connected Edge
-
removeOutput
Remove output Connected Edge.- Parameters:
edge
- Connected Edge
-
disconnect
public void disconnect()Disconnect all input and output Connected Edge. -
addPrefix
Add Prefix to this Connected Vertex.- Parameters:
prefix
- Prefix
-
removePrefix
Remove Prefix.- Parameters:
prefix
- Prefix
-
getKey
Description copied from interface:ConnectedVertex
Returns unique key associated to this Connected Vertex.- Specified by:
getKey
in interfaceConnectedVertex
- Returns:
- Vertex Key
-
getVertex
Description copied from interface:ConnectedVertex
Returns Vertex associated to this Connected Vertex.- Specified by:
getVertex
in interfaceConnectedVertex
- Returns:
- vertex Vertex
-
getEdgeTo
Description copied from interface:ConnectedVertex
Returns Connected Edges that has for destination the Connected Vertex identified by its key.- Specified by:
getEdgeTo
in interfaceConnectedVertex
- Parameters:
dstRid
- Unique Key that identify the destination Vertex- Returns:
- List of Connected Edge
-
getInputEdges
Description copied from interface:ConnectedVertex
Returns the list of incoming Edge for this Connected Vertex.- Specified by:
getInputEdges
in interfaceConnectedVertex
- Returns:
- List of Edge
-
getInputConnectedEdges
Description copied from interface:ConnectedVertex
Returns the list of incoming Connected Edge for this Connected Vertex.- Specified by:
getInputConnectedEdges
in interfaceConnectedVertex
- Returns:
- List of Connected Edge
-
getOutputEdges
Description copied from interface:ConnectedVertex
Returns the list of outgoing Edge for this Connected Vertex.- Specified by:
getOutputEdges
in interfaceConnectedVertex
- Returns:
- List of Edge
-
getOutputConnectedEdges
Description copied from interface:ConnectedVertex
Returns the list of outgoing Connected Edge for this Connected Vertex.- Specified by:
getOutputConnectedEdges
in interfaceConnectedVertex
- Returns:
- List of Connected Edge
-
getPrefixes
Description copied from interface:ConnectedVertex
Return the list of prefix announced by this Connected Vertex. Prefix contains the associated SID when Segment Routing is enable.- Specified by:
getPrefixes
in interfaceConnectedVertex
- Returns:
- List of Prefix
-
registerTrigger
Description copied from interface:ConnectedVertex
Register a trigger that is executed when a problem occurs on the Connected Vertex.- Specified by:
registerTrigger
in interfaceConnectedVertex
- Parameters:
trigger
- Trigger to be registeredkey
- A unique key as string e.g. NodeId+LspId- Returns:
- True if registration is done, false otherwise
-
unRegisterTrigger
Description copied from interface:ConnectedVertex
Un-register a trigger that is already registered on the Connected Vertex.- Specified by:
unRegisterTrigger
in interfaceConnectedVertex
- Parameters:
trigger
- Trigger to be unregisteredkey
- A unique key as string e.g. NodeId+LspId- Returns:
- True if un-registration is done, false otherwise
-
getTriggers
-
toString
Return the name of the associated Vertex if set or the router-id otherwise.
-