Skip navigation links

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

B28401-02


oracle.spatial.network.lod
Class NetworkUpdate

java.lang.Object
  extended by oracle.spatial.network.lod.NetworkUpdate


public class NetworkUpdate
extends java.lang.Object

An instance of this class contains the network update information for a network.

Since:
11gR1

Constructor Summary
NetworkUpdate()
           

 

Method Summary
 void deleteLink(long linkId)
          Deletes a link from the network
 void deleteLink(long linkId, int enclosingPartitionId)
          Deletes a link from the network
 void deleteNode(long nodeId)
          Deletes a node from the network
 void deleteNode(long nodeId, int enclosingPartitionId)
          Delete a node from the network.
 java.util.Set<java.lang.Long> getDeletedLinkIds()
           
 java.util.Set<java.lang.Long> getDeletedNodeIds()
           
 LogicalLink getLink(long linkId)
           
 LogicalNode getNode(long nodeId)
           
 int getNodePartitionId(long nodeId)
          Returns the partition ID the node is assigned to.
 PartitionUpdate getPartitionUpdate(int partitionId)
          Returns the update information of the specified partition.
 int[] getUpdatedPartitionIds()
          Returns the IDs of all the updated partitions.
 void setPartitionUpdate(int partitionId, PartitionUpdate partitionUpdate)
          Sets the update information for the specified partition.
 void updateLink(LogicalLink link, int enclosingPartitionId)
          Adds or updates a link in the network
 void updateNode(LogicalNode node, int enclosingPartitionId, int nodePartitionId)
          Adds or updates a node in the network.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

NetworkUpdate

public NetworkUpdate()

Method Detail

getUpdatedPartitionIds

public int[] getUpdatedPartitionIds()
Returns the IDs of all the updated partitions.
Returns:
partition IDs

getPartitionUpdate

public PartitionUpdate getPartitionUpdate(int partitionId)
Returns the update information of the specified partition.
Parameters:
partitionId - partition ID
Returns:
partition update information

setPartitionUpdate

public void setPartitionUpdate(int partitionId,
                               PartitionUpdate partitionUpdate)
Sets the update information for the specified partition.
Parameters:
partitionId - partition ID
partitionUpdate - partition update information

updateNode

public void updateNode(LogicalNode node,
                       int enclosingPartitionId,
                       int nodePartitionId)
Adds or updates a node in the network.
Parameters:
node - node to be updated
enclosingPartitionId - the network partition to update the node in. Note that, when the node is an external node in the enclosing partition, the enclosing partition ID is different from the partition ID the node is assigned to.
nodePartitionId - the partition ID the node is assigned to

deleteNode

public void deleteNode(long nodeId,
                       int enclosingPartitionId)
Delete a node from the network.
Parameters:
nodeId - ID of the node to be deleted
enclosingPartitionId - the network partition to delete the node from. Note that, when the node is an external node in the enclosing partition, the enclosing partition ID is different from the partition ID the node is assigned to.

deleteNode

public void deleteNode(long nodeId)
Deletes a node from the network
Parameters:
nodeId - ID of the node to be deleted

updateLink

public void updateLink(LogicalLink link,
                       int enclosingPartitionId)
Adds or updates a link in the network
Parameters:
link - link to be updated
enclosingPartitionId - the network partition to update the link in

deleteLink

public void deleteLink(long linkId,
                       int enclosingPartitionId)
Deletes a link from the network
Parameters:
linkId - ID of the link to be deleted
enclosingPartitionId - the network partition to delele the link from

deleteLink

public void deleteLink(long linkId)
Deletes a link from the network
Parameters:
linkId - ID of the link to be deleted

getNodePartitionId

public int getNodePartitionId(long nodeId)
Returns the partition ID the node is assigned to.
Parameters:
nodeId - node ID
Returns:
ID of the partition the node is assigned to

getNode

public LogicalNode getNode(long nodeId)

getLink

public LogicalLink getLink(long linkId)

getDeletedNodeIds

public java.util.Set<java.lang.Long> getDeletedNodeIds()

getDeletedLinkIds

public java.util.Set<java.lang.Long> getDeletedLinkIds()

Skip navigation links

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

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.