Skip navigation links

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


oracle.spatial.network.lod
Interface LogicalBasicNetwork

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
LogicalPartition, LogicalSubNetwork, SpatialBasicNetwork, SpatialPartition, SpatialSubNetwork

public interface LogicalBasicNetwork
extends java.lang.Cloneable

This interface defines methods supported by a logical network.

Since:
11gR1

Method Summary
 void addLink(LogicalNetLink link)
          Add a logical link to the network.
 void addNode(LogicalNetNode node)
          Add a logical node to the network.
 void addUserData(java.lang.String tableType, long[] ids, java.util.Map<java.lang.String,java.lang.Object>[] userData)
          Adds user data to the network.
 java.lang.Object clone()
          Support cloneable
 LogicalNetLink getLink(long linkId)
          Returns the logical link object for the specified link id.
 long[] getLinkIds()
          Returns all the link ids in the network.
 LogicalNetLink[] getLinks()
          Returns all the links in the network.
 java.lang.String getName()
          Returns the internal network name, for example, the network name stored in spatial network metadata table.
 LogicalNetNode getNode(long nodeId)
          Returns the logical node object for the specified node id.
 long[] getNodeIds()
          Returns all the node ids in the network.
 LogicalNetNode[] getNodes()
          Returns all the nodes in the network.
 int getNumberOfLinks()
          Returns the total number of links in the network.
 int getNumberOfNodes()
          Returns the total number of nodes in the network.
 boolean isUserDataLoaded()
          Returns whether the user data are loaded to the network.
 void removeLink(long linkId)
          Removes a link from the network.
 void removeNode(long nodeId)
          Removes a node from the network.
 void setIsUserDataLoaded(boolean isUserDataLoaded)
          Sets whether the user data is loaded to the network.

 

Method Detail

getName

java.lang.String getName()
Returns the internal network name, for example, the network name stored in spatial network metadata table. Note that the internal network names for different networks are not garanteed to be unique across multiple database connections.
Returns:
network name

addLink

void addLink(LogicalNetLink link)
Add a logical link to the network.
Parameters:
link - logical link

addNode

void addNode(LogicalNetNode node)
Add a logical node to the network.
Parameters:
node -

getNumberOfNodes

int getNumberOfNodes()
Returns the total number of nodes in the network.
Returns:
number of nodes

getNumberOfLinks

int getNumberOfLinks()
Returns the total number of links in the network.
Returns:
number of links

getNodes

LogicalNetNode[] getNodes()
Returns all the nodes in the network.
Returns:
array of nodes

getLinks

LogicalNetLink[] getLinks()
Returns all the links in the network.
Returns:
array of links

getNode

LogicalNetNode getNode(long nodeId)
Returns the logical node object for the specified node id.
Parameters:
nodeId - node id
Returns:
logical node object

getLink

LogicalNetLink getLink(long linkId)
Returns the logical link object for the specified link id.
Parameters:
linkId - link id
Returns:
logical link object

getNodeIds

long[] getNodeIds()
Returns all the node ids in the network.
Returns:
array of node ids

getLinkIds

long[] getLinkIds()
Returns all the link ids in the network.
Returns:
array of link ids

isUserDataLoaded

boolean isUserDataLoaded()
Returns whether the user data are loaded to the network.
Returns:
true, if the user data are loaded; false, otherwise.

setIsUserDataLoaded

void setIsUserDataLoaded(boolean isUserDataLoaded)
Sets whether the user data is loaded to the network.
Parameters:
isUserDataLoaded - true, if the user data are loaded; false, otherwise.

addUserData

void addUserData(java.lang.String tableType,
                 long[] ids,
                 java.util.Map<java.lang.String,java.lang.Object>[] userData)
Adds user data to the network.
Parameters:
tableType - table type of the user data
ids - IDs of the objects to which the user data are added
userData - arrays of user data maps

removeNode

void removeNode(long nodeId)
Removes a node from the network.
Parameters:
nodeId - ID of the node to be removed

removeLink

void removeLink(long linkId)
Removes a link from the network.
Parameters:
linkId - ID of the link to be removed

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Support cloneable
Returns:
cloned object
Throws:
java.lang.CloneNotSupportedException

Skip navigation links

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


Copyright © 2007, Oracle. All Rights Reserved.