Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)
B28401-01


oracle.spatial.network.lod
Interface LogicalPartition

All Superinterfaces:
java.lang.Cloneable, LogicalBasicNetwork, LogicalSubNetwork
All Known Subinterfaces:
SpatialPartition

public interface LogicalPartition
extends LogicalSubNetwork

This interface defines methods supported by a logical network partition.

Since:
11gR1

Method Summary
 void addNode(LogicalNetNode node, int partitionId)
          Adds a node to the network partition.
 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.LogicalSubNetwork
addNode, getBoundaryLinkIds, getExternalNodeIds, getIncomingLinkIds, getInternalBoundaryNodeIds, getInternalLinkIds, getInternalNodeIds, getInternalNonBoundaryNodeIds, getNumberOfBoundaryLinks, getNumberOfExternalNodes, getNumberOfIncomingLinks, getNumberOfInternalLinks, getNumberOfInternalNodes, getNumberOfOutgoingLinks, getOutgoingLinkIds, isIncomingLink, isInternalLink, isInternalNode, isOutgoingLink

 

Methods inherited from interface oracle.spatial.network.lod.LogicalBasicNetwork
addLink, addNode, addUserData, clone, getLink, getLinkIds, getLinks, getName, getNode, getNodeIds, getNodes, getNumberOfLinks, getNumberOfNodes, isUserDataLoaded, removeLink, removeNode, setIsUserDataLoaded

 

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 node
partitionId - 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 ID
partitionId - partition ID

update

void update(PartitionUpdate pu)
            throws LODNetworkException
Updates this network partition with the input partition update information.
Parameters:
pu - partition update information
Throws:
LODNetworkException

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)
B28401-01


Copyright © 2007, Oracle. All Rights Reserved.