public static class NetworkBuffer.Elements
extends java.lang.Object
Constructor and Description |
---|
Elements() |
Modifier and Type | Method and Description |
---|---|
void |
addLinkIntervals(NetworkBuffer.LinkIntervals linkIntervals) |
void |
addNode(LogicalNode node)
Adds a node to the network elements.
|
NetworkBuffer.LinkIntervals[] |
getLinkIntervals()
Returns the link intervals in the network elements.
|
NetworkBuffer.LinkIntervals |
getLinkIntervals(long linkId)
Returns the link intervals of the specified link.
|
LogicalNode |
getNode(long nodeId)
Returns the node object of the specified node.
|
LogicalNode[] |
getNodes()
Returns the nodes in the network elements.
|
int |
getNumberOfLinks()
Returns the number of links in the network elements.
|
int |
getNumberOfNodes()
Returns the number of nodes in the network elements.
|
boolean |
hasLink(long linkId)
Checks whether the network elements contains the specified link.
|
boolean |
hasNode(long nodeId)
Checks whether the network elements contains the specified node.
|
void |
removeLink(long linkId)
Removes the specified link from the network elements.
|
void |
removeNode(long nodeId)
Removes the specified node from the network elements.
|
public void addLinkIntervals(NetworkBuffer.LinkIntervals linkIntervals)
public void addNode(LogicalNode node)
node
-public NetworkBuffer.LinkIntervals[] getLinkIntervals()
public NetworkBuffer.LinkIntervals getLinkIntervals(long linkId)
linkId
- ID of the linkpublic LogicalNode[] getNodes()
public LogicalNode getNode(long nodeId)
nodeId
- ID of the nodepublic int getNumberOfNodes()
public int getNumberOfLinks()
public boolean hasLink(long linkId)
linkId
- ID of the linkpublic boolean hasNode(long nodeId)
nodeId
- ID of the nodepublic void removeLink(long linkId)
linkId
- ID of the linkpublic void removeNode(long nodeId)
nodeId
- ID of the node