Package org.opendaylight.graph.impl
Class ConnectedVertexImpl
- java.lang.Object
-
- org.opendaylight.graph.impl.ConnectedVertexImpl
-
- All Implemented Interfaces:
org.opendaylight.graph.ConnectedVertex
public class ConnectedVertexImpl extends Object implements org.opendaylight.graph.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 org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.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(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix prefix)Add Prefix to this Connected Vertex.voiddisconnect()Disconnect all input and output Connected Edge.List<org.opendaylight.graph.ConnectedEdge>getEdgeTo(Long dstRid)List<org.opendaylight.graph.ConnectedEdge>getInputConnectedEdges()List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge>getInputEdges()LonggetKey()List<org.opendaylight.graph.ConnectedEdge>getOutputConnectedEdges()List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge>getOutputEdges()List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix>getPrefixes()List<org.opendaylight.graph.ConnectedVertexTrigger>getTriggers()org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexgetVertex()booleanregisterTrigger(org.opendaylight.graph.ConnectedVertexTrigger trigger, String key)ConnectedVertexImplremoveInput(ConnectedEdgeImpl edge)Remove input Connected Edge.ConnectedVertexImplremoveOutput(ConnectedEdgeImpl edge)Remove output Connected Edge.voidremovePrefix(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix prefix)Remove Prefix.ConnectedVertexImplsetVertex(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Vertex vertex)Set associated Vertex to this Connected Vertex.StringtoString()Return the name of the associated Vertex if set or the router-id otherwise.booleanunRegisterTrigger(org.opendaylight.graph.ConnectedVertexTrigger trigger, String key)
-
-
-
Constructor Detail
-
ConnectedVertexImpl
public ConnectedVertexImpl(@NonNull Long key)
-
ConnectedVertexImpl
public ConnectedVertexImpl(@NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Vertex vertex)
-
-
Method Detail
-
setVertex
public ConnectedVertexImpl setVertex(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.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(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix prefix)
Add Prefix to this Connected Vertex.- Parameters:
prefix- Prefix
-
removePrefix
public void removePrefix(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix prefix)
Remove Prefix.- Parameters:
prefix- Prefix
-
getKey
public Long getKey()
- Specified by:
getKeyin interfaceorg.opendaylight.graph.ConnectedVertex
-
getVertex
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Vertex getVertex()
- Specified by:
getVertexin interfaceorg.opendaylight.graph.ConnectedVertex
-
getEdgeTo
public List<org.opendaylight.graph.ConnectedEdge> getEdgeTo(Long dstRid)
- Specified by:
getEdgeToin interfaceorg.opendaylight.graph.ConnectedVertex
-
getInputEdges
public List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge> getInputEdges()
- Specified by:
getInputEdgesin interfaceorg.opendaylight.graph.ConnectedVertex
-
getInputConnectedEdges
public List<org.opendaylight.graph.ConnectedEdge> getInputConnectedEdges()
- Specified by:
getInputConnectedEdgesin interfaceorg.opendaylight.graph.ConnectedVertex
-
getOutputEdges
public List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Edge> getOutputEdges()
- Specified by:
getOutputEdgesin interfaceorg.opendaylight.graph.ConnectedVertex
-
getOutputConnectedEdges
public List<org.opendaylight.graph.ConnectedEdge> getOutputConnectedEdges()
- Specified by:
getOutputConnectedEdgesin interfaceorg.opendaylight.graph.ConnectedVertex
-
getPrefixes
public List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.Prefix> getPrefixes()
- Specified by:
getPrefixesin interfaceorg.opendaylight.graph.ConnectedVertex
-
registerTrigger
public boolean registerTrigger(org.opendaylight.graph.ConnectedVertexTrigger trigger, String key)- Specified by:
registerTriggerin interfaceorg.opendaylight.graph.ConnectedVertex
-
unRegisterTrigger
public boolean unRegisterTrigger(org.opendaylight.graph.ConnectedVertexTrigger trigger, String key)- Specified by:
unRegisterTriggerin interfaceorg.opendaylight.graph.ConnectedVertex
-
getTriggers
public List<org.opendaylight.graph.ConnectedVertexTrigger> getTriggers()
-
-