public interface LogicalPartition extends LogicalSubNetwork
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(LogicalNetNode node, int partitionId)
Adds a node to the network partition.
|
int[] |
getLinkPartitionIds(long linkId)
Returns the ID of the partitions that the start and end nodes of the input link belongs to.
|
int |
getNodePartitionId(long nodeId)
Returns the ID of the partition that the input node belongs to.
|
int |
getPartitionId()
Returns the partition ID of this partition.
|
void |
setNodePartitionId(long nodeId, int partitionId)
Sets the partition the node belongs to.
|
void |
update(PartitionUpdate pu)
Updates this network partition with the input partition update information.
|
addNode, getBoundaryLinkIds, getExternalNodeIds, getIncomingLinkIds, getInternalBoundaryNodeIds, getInternalLinkIds, getInternalNodeIds, getInternalNonBoundaryNodeIds, getNumberOfBoundaryLinks, getNumberOfExternalNodes, getNumberOfIncomingLinks, getNumberOfInternalLinks, getNumberOfInternalNodes, getNumberOfOutgoingLinks, getOutgoingLinkIds, isIncomingLink, isInternalLink, isInternalNode, isOutgoingLinkaddFeatureLayer, addLink, addNode, addUserDataCategory, clone, getFeatureData, getLink, getLinkIds, getLinkLevel, getLinks, getName, getNode, getNodeIds, getNodes, getNumberOfLinks, getNumberOfNodes, getUserDataCategories, isFeatureLayerLoaded, isUserDataCategoryLoaded, isUserDataLoaded, removeLink, removeNode, setFeatureData, setIsUserDataLoadedint getPartitionId()
void addNode(LogicalNetNode node, int partitionId)
node - logical nodepartitionId - ID of the partition that the node belongs to
int getNodePartitionId(long nodeId)
throws NodeNotFoundException
nodeId - node IDNodeNotFoundException
void setNodePartitionId(long nodeId,
int partitionId)
nodeId - node IDpartitionId - partition ID
int[] getLinkPartitionIds(long linkId)
throws LinkNotFoundException
linkId - link IDLinkNotFoundExceptionvoid update(PartitionUpdate pu) throws LODNetworkException
pu - partition update informationLODNetworkException