public interface LogicalSubNetwork extends LogicalBasicNetwork
Modifier and Type | Method and Description |
---|---|
void |
addNode(LogicalNetNode node, boolean isInternal)
Adds a logical node to the sub-network.
|
long[] |
getBoundaryLinkIds()
Returns all the boundary link IDs in the sub-network.
|
long[] |
getExternalNodeIds()
Returns all the external node IDs in the sub-network.
|
long[] |
getIncomingLinkIds()
Returns all the incoming link IDs in the sub-network.
|
long[] |
getInternalBoundaryNodeIds()
Returns all the internal node IDs in the sub-network without a link to any external nodes.
|
long[] |
getInternalLinkIds()
Returns all the internal link IDs in the sub-network.
|
long[] |
getInternalNodeIds()
Returns all the internal node IDs in the sub-network.
|
long[] |
getInternalNonBoundaryNodeIds()
Returns all the internal node IDs in the sub-network without a link to any external nodes.
|
int |
getNumberOfBoundaryLinks()
Returns the number of boundary links in the sub-network, which includes both incoming links and outgoing links.
|
int |
getNumberOfExternalNodes()
Returns the number of external nodes in the sub-network.
|
int |
getNumberOfIncomingLinks()
Returns the number of incoming links to the sub-network.
|
int |
getNumberOfInternalLinks()
Returns the number of internal links in the sub-network.
|
int |
getNumberOfInternalNodes()
Returns the number of internal nodes in the sub-network.
|
int |
getNumberOfOutgoingLinks()
Returns the number of outgoing links from the sub-network.
|
long[] |
getOutgoingLinkIds()
Returns all the outgoing link IDs in the sub-network.
|
boolean |
isIncomingLink(long linkId)
Checks whether the input link is an incoming link or not.
|
boolean |
isInternalLink(long linkId)
Checks whether the input link is an internal link or not.
|
boolean |
isInternalNode(long nodeId)
Checks whether the input node is an internal node or not.
|
boolean |
isOutgoingLink(long linkId)
Checks whether the input link is an outgoing link or not.
|
addFeatureLayer, addLink, addNode, addUserDataCategory, clone, getFeatureData, getLink, getLinkIds, getLinkLevel, getLinks, getName, getNode, getNodeIds, getNodes, getNumberOfLinks, getNumberOfNodes, getUserDataCategories, isFeatureLayerLoaded, isUserDataCategoryLoaded, isUserDataLoaded, removeLink, removeNode, setFeatureData, setIsUserDataLoaded
int getNumberOfInternalNodes()
int getNumberOfExternalNodes()
int getNumberOfInternalLinks()
int getNumberOfBoundaryLinks()
int getNumberOfIncomingLinks()
int getNumberOfOutgoingLinks()
long[] getInternalNodeIds()
long[] getInternalBoundaryNodeIds()
long[] getInternalNonBoundaryNodeIds()
long[] getExternalNodeIds()
boolean isInternalNode(long nodeId)
nodeId
- node idboolean isInternalLink(long linkId)
linkId
- link IDboolean isIncomingLink(long linkId)
linkId
- link IDboolean isOutgoingLink(long linkId)
linkId
- link IDlong[] getInternalLinkIds()
long[] getBoundaryLinkIds()
long[] getIncomingLinkIds()
long[] getOutgoingLinkIds()
void addNode(LogicalNetNode node, boolean isInternal)
node
- logical nodeisInternal
- set to true, if the node is an internal node; false, otherwise.