Package oracle.spatial.network.lod
Class NetworkUpdate
- java.lang.Object
-
- oracle.spatial.network.lod.NetworkUpdate
-
public class NetworkUpdate extends java.lang.Object
A NetworkUpdate object contains network update information.- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor Description NetworkUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteLink(long linkId)
Deletes a link from the networkvoid
deleteLink(long linkId, int enclosingPartitionId)
Deletes a link from the networkvoid
deleteNode(long nodeId)
Deletes a node from the networkvoid
deleteNode(long nodeId, int enclosingPartitionId)
Delete a node from the network.long[]
getDeletedLinkIds()
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.boolean
isLinkDeleted(long linkId)
boolean
isNodeDeleted(long nodeId)
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 networkvoid
updateNode(LogicalNode node, int enclosingPartitionId, int nodePartitionId)
Adds or updates a node in the network.
-
-
-
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 IDpartitionUpdate
- 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 updatedenclosingPartitionId
- 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 deletedenclosingPartitionId
- 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 updatedenclosingPartitionId
- 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 deletedenclosingPartitionId
- the network partition to delete 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 long[] getDeletedNodeIds()
-
getDeletedLinkIds
public long[] getDeletedLinkIds()
-
isLinkDeleted
public boolean isLinkDeleted(long linkId)
-
isNodeDeleted
public boolean isNodeDeleted(long nodeId)
-
-