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 ConnectedVertexImpladdInput(ConnectedEdgeImpl edge)Add Connected Edge as input edge.ConnectedVertexImpladdOutput(ConnectedEdgeImpl edge)Add Connected Edge as output edge.ConnectedVertexImpladdPrefix(Prefix prefix)Add Prefix to this Connected Vertex.voiddisconnect()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.LonggetKey()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.VertexgetVertex()Returns Vertex associated to this Connected Vertex.ConnectedVertexImplremoveInput(ConnectedEdgeImpl edge)Remove input Connected Edge.ConnectedVertexImplremoveOutput(ConnectedEdgeImpl edge)Remove output Connected Edge.voidremovePrefix(Prefix prefix)Remove Prefix.ConnectedVertexImplsetVertex(Vertex vertex)Set associated Vertex to this Connected Vertex.StringtoString()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:ConnectedVertexReturns unique key associated to this Connected Vertex.- Specified by:
getKeyin interfaceConnectedVertex- Returns:
- Vertex Key
-
getVertex
public Vertex getVertex()
Description copied from interface:ConnectedVertexReturns Vertex associated to this Connected Vertex.- Specified by:
getVertexin interfaceConnectedVertex- Returns:
- vertex Vertex
-
getEdgeTo
public List<ConnectedEdge> getEdgeTo(Long dstRid)
Description copied from interface:ConnectedVertexReturns Connected Edges that has for destination the Connected Vertex identified by its key.- Specified by:
getEdgeToin interfaceConnectedVertex- Parameters:
dstRid- Unique Key that identify the destination Vertex- Returns:
- List of Connected Edge
-
getInputEdges
public List<Edge> getInputEdges()
Description copied from interface:ConnectedVertexReturns the list of incoming Edge for this Connected Vertex.- Specified by:
getInputEdgesin interfaceConnectedVertex- Returns:
- List of Edge
-
getInputConnectedEdges
public List<ConnectedEdge> getInputConnectedEdges()
Description copied from interface:ConnectedVertexReturns the list of incoming Connected Edge for this Connected Vertex.- Specified by:
getInputConnectedEdgesin interfaceConnectedVertex- Returns:
- List of Connected Edge
-
getOutputEdges
public List<Edge> getOutputEdges()
Description copied from interface:ConnectedVertexReturns the list of outgoing Edge for this Connected Vertex.- Specified by:
getOutputEdgesin interfaceConnectedVertex- Returns:
- List of Edge
-
getOutputConnectedEdges
public List<ConnectedEdge> getOutputConnectedEdges()
Description copied from interface:ConnectedVertexReturns the list of outgoing Connected Edge for this Connected Vertex.- Specified by:
getOutputConnectedEdgesin interfaceConnectedVertex- Returns:
- List of Connected Edge
-
getPrefixes
public List<Prefix> getPrefixes()
Description copied from interface:ConnectedVertexReturn the list of prefix announced by this Connected Vertex. Prefix contains the associated SID when Segment Routing is enable.- Specified by:
getPrefixesin interfaceConnectedVertex- Returns:
- List of Prefix
-
-