Class PrefixTransferGraph
java.lang.Object
org.scandroid.prefixtransfer.PrefixTransferGraph
- All Implemented Interfaces:
EdgeManager<InstanceKeySite>, Graph<InstanceKeySite>, NodeManager<InstanceKeySite>, Iterable<InstanceKeySite>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdge(InstanceKeySite src, InstanceKeySite dst) voidadd a node to this graphbooleanintintReturn the number ofimmediate predecessornodes of nReturn anIteratorover the immediate predecessor nodes of nintReturn the number ofimmediate successornodes of this Node in the GraphReturn an Iterator over the immediate successor nodes of nbooleanhasEdge(InstanceKeySite src, InstanceKeySite dst) iterator()voidvoidremoveEdge(InstanceKeySite src, InstanceKeySite dst) voidvoidremove a node from this graphvoidremove a node and all its incident edgesvoidstream()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
sbuaMap
-
-
Constructor Details
-
PrefixTransferGraph
-
-
Method Details
-
removeNodeAndEdges
Description copied from interface:Graphremove a node and all its incident edges- Specified by:
removeNodeAndEdgesin interfaceGraph<InstanceKeySite>- Throws:
UnsupportedOperationException- if the graph implementation does not allow removal
-
addNode
Description copied from interface:NodeManageradd a node to this graph- Specified by:
addNodein interfaceNodeManager<InstanceKeySite>
-
containsNode
- Specified by:
containsNodein interfaceNodeManager<InstanceKeySite>- Returns:
- true iff the graph contains the specified node
-
getNumberOfNodes
public int getNumberOfNodes()- Specified by:
getNumberOfNodesin interfaceNodeManager<InstanceKeySite>- Returns:
- the number of nodes in this graph
-
iterator
- Specified by:
iteratorin interfaceIterable<InstanceKeySite>- Specified by:
iteratorin interfaceNodeManager<InstanceKeySite>- Returns:
- an
Iteratorof the nodes in this graph
-
stream
- Specified by:
streamin interfaceNodeManager<InstanceKeySite>- Returns:
- a
Streamof the nodes in this graph
-
removeNode
Description copied from interface:NodeManagerremove a node from this graph- Specified by:
removeNodein interfaceNodeManager<InstanceKeySite>
-
addEdge
- Specified by:
addEdgein interfaceEdgeManager<InstanceKeySite>
-
getPredNodeCount
Description copied from interface:EdgeManagerReturn the number ofimmediate predecessornodes of n- Specified by:
getPredNodeCountin interfaceEdgeManager<InstanceKeySite>- Returns:
- the number of immediate predecessors of n.
-
getPredNodes
Description copied from interface:EdgeManagerReturn anIteratorover the immediate predecessor nodes of nThis method never returns
null.- Specified by:
getPredNodesin interfaceEdgeManager<InstanceKeySite>- Returns:
- an
Iteratorover the immediate predecessor nodes of this Node.
-
getSuccNodeCount
Description copied from interface:EdgeManagerReturn the number ofimmediate successornodes of this Node in the Graph- Specified by:
getSuccNodeCountin interfaceEdgeManager<InstanceKeySite>- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
getSuccNodes
Description copied from interface:EdgeManagerReturn an Iterator over the immediate successor nodes of nThis method never returns
null.- Specified by:
getSuccNodesin interfaceEdgeManager<InstanceKeySite>- Returns:
- an Iterator over the immediate successor nodes of n
-
hasEdge
- Specified by:
hasEdgein interfaceEdgeManager<InstanceKeySite>
-
removeAllIncidentEdges
- Specified by:
removeAllIncidentEdgesin interfaceEdgeManager<InstanceKeySite>- Throws:
UnsupportedOperationException
-
removeEdge
public void removeEdge(InstanceKeySite src, InstanceKeySite dst) throws UnsupportedOperationException - Specified by:
removeEdgein interfaceEdgeManager<InstanceKeySite>- Throws:
UnsupportedOperationException
-
removeIncomingEdges
- Specified by:
removeIncomingEdgesin interfaceEdgeManager<InstanceKeySite>- Throws:
UnsupportedOperationException
-
removeOutgoingEdges
- Specified by:
removeOutgoingEdgesin interfaceEdgeManager<InstanceKeySite>- Throws:
UnsupportedOperationException
-