Package org.opendaylight.graph.impl
Class ConnectedVertexImpl
- java.lang.Object
-
- org.opendaylight.graph.impl.ConnectedVertexImpl
-
- All Implemented Interfaces:
ConnectedVertex
public class ConnectedVertexImpl extends Object implements ConnectedVertex
This Class implements the Connected Vertex used by the Connected Graph for path computation algorithms.- Author:
- Olivier Dugeon, Philippe Niger
-
-
Constructor Summary
Constructors Constructor Description ConnectedVertexImpl(@NonNull Long key)
ConnectedVertexImpl(@NonNull Vertex vertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectedVertexImpl
addInput(ConnectedEdgeImpl edge)
Add Connected Edge as input edge.ConnectedVertexImpl
addOutput(ConnectedEdgeImpl edge)
Add Connected Edge as output edge.ConnectedVertexImpl
addPrefix(Prefix prefix)
Add Prefix to this Connected Vertex.void
disconnect()
Disconnect all input and output Connected Edge.List<ConnectedEdge>
getEdgeTo(Long dstRid)
Returns Connected Edges that has for destination the Connected Vertex identified by its key.List<ConnectedEdge>
getInputConnectedEdges()
Returns the list of incoming Connected Edge for this Connected Vertex.List<Edge>
getInputEdges()
Returns the list of incoming Edge for this Connected Vertex.Long
getKey()
Returns unique key associated to this Connected Vertex.List<ConnectedEdge>
getOutputConnectedEdges()
Returns the list of outgoing Connected Edge for this Connected Vertex.List<Edge>
getOutputEdges()
Returns the list of outgoing Edge for this Connected Vertex.List<Prefix>
getPrefixes()
Return the list of prefix announced by this Connected Vertex.Vertex
getVertex()
Returns Vertex associated to this Connected Vertex.ConnectedVertexImpl
removeInput(ConnectedEdgeImpl edge)
Remove input Connected Edge.ConnectedVertexImpl
removeOutput(ConnectedEdgeImpl edge)
Remove output Connected Edge.void
removePrefix(Prefix prefix)
Remove Prefix.ConnectedVertexImpl
setVertex(Vertex vertex)
Set associated Vertex to this Connected Vertex.String
toString()
Return the name of the associated Vertex if set or the router-id otherwise.
-
-
-
Method Detail
-
setVertex
public ConnectedVertexImpl setVertex(Vertex vertex)
Set associated Vertex to this Connected Vertex.- Parameters:
vertex
- Vertex
-
addInput
public ConnectedVertexImpl addInput(ConnectedEdgeImpl edge)
Add Connected Edge as input edge.- Parameters:
edge
- Connected Edge
-
addOutput
public ConnectedVertexImpl addOutput(ConnectedEdgeImpl edge)
Add Connected Edge as output edge.- Parameters:
edge
- Connected Edge
-
removeInput
public ConnectedVertexImpl removeInput(ConnectedEdgeImpl edge)
Remove input Connected Edge.- Parameters:
edge
- Connected Edge
-
removeOutput
public ConnectedVertexImpl removeOutput(ConnectedEdgeImpl edge)
Remove output Connected Edge.- Parameters:
edge
- Connected Edge
-
disconnect
public void disconnect()
Disconnect all input and output Connected Edge.
-
addPrefix
public ConnectedVertexImpl addPrefix(Prefix prefix)
Add Prefix to this Connected Vertex.- Parameters:
prefix
- Prefix
-
removePrefix
public void removePrefix(Prefix prefix)
Remove Prefix.- Parameters:
prefix
- Prefix
-
getKey
public Long getKey()
Description copied from interface:ConnectedVertex
Returns unique key associated to this Connected Vertex.- Specified by:
getKey
in interfaceConnectedVertex
- Returns:
- Vertex Key
-
getVertex
public Vertex getVertex()
Description copied from interface:ConnectedVertex
Returns Vertex associated to this Connected Vertex.- Specified by:
getVertex
in interfaceConnectedVertex
- Returns:
- vertex Vertex
-
getEdgeTo
public List<ConnectedEdge> getEdgeTo(Long dstRid)
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
public List<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
public List<ConnectedEdge> 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
public List<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
public List<ConnectedEdge> 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
public List<Prefix> 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
-
-