Package oracle.spatial.network.lod
Interface LogicalPartition
-
- All Superinterfaces:
java.lang.Cloneable
,LogicalBasicNetwork
,LogicalSubNetwork
- All Known Subinterfaces:
SpatialPartition
- All Known Implementing Classes:
LogicalPartitionImpl
public interface LogicalPartition extends LogicalSubNetwork
This interface defines methods supported by a logical network partition.- Since:
- 11gR1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface oracle.spatial.network.lod.LogicalBasicNetwork
addFeatureLayer, addLink, addNode, addUserDataCategory, clone, getFeatureData, getLink, getLinkIds, getLinkLevel, getLinks, getName, getNode, getNodeIds, getNodes, getNumberOfLinks, getNumberOfNodes, getUserDataCategories, isFeatureLayerLoaded, isUserDataCategoryLoaded, isUserDataLoaded, removeLink, removeNode, setFeatureData, setIsUserDataLoaded
-
Methods inherited from interface oracle.spatial.network.lod.LogicalSubNetwork
addNode, getBoundaryLinkIds, getExternalNodeIds, getIncomingLinkIds, getInternalBoundaryNodeIds, getInternalLinkIds, getInternalNodeIds, getInternalNonBoundaryNodeIds, getNumberOfBoundaryLinks, getNumberOfExternalNodes, getNumberOfIncomingLinks, getNumberOfInternalLinks, getNumberOfInternalNodes, getNumberOfOutgoingLinks, getOutgoingLinkIds, isIncomingLink, isInternalLink, isInternalNode, isOutgoingLink
-
-
-
-
Method Detail
-
getPartitionId
int getPartitionId()
Returns the partition ID of this partition.- Returns:
- partition ID of this partition
-
addNode
void addNode(LogicalNetNode node, int partitionId)
Adds a node to the network partition. The input partition ID can be the same as the partition ID of this network partition, in which case, the node to be added is an internal node; otherwise, the node is an external node, belong to a neighboring partition.- Parameters:
node
- logical nodepartitionId
- ID of the partition that the node belongs to
-
getNodePartitionId
int getNodePartitionId(long nodeId) throws NodeNotFoundException
Returns the ID of the partition that the input node belongs to.- Parameters:
nodeId
- node ID- Returns:
- partition ID
- Throws:
NodeNotFoundException
-
setNodePartitionId
void setNodePartitionId(long nodeId, int partitionId)
Sets the partition the node belongs to.- Parameters:
nodeId
- node IDpartitionId
- partition ID
-
getLinkPartitionIds
int[] getLinkPartitionIds(long linkId) throws LinkNotFoundException
Returns the ID of the partitions that the start and end nodes of the input link belongs to.- Parameters:
linkId
- link ID- Returns:
- partition IDs
- Throws:
LinkNotFoundException
-
update
void update(PartitionUpdate pu) throws LODNetworkException
Updates this network partition with the input partition update information.- Parameters:
pu
- partition update information- Throws:
LODNetworkException
-
-