|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a network.
Field Summary | |
static int |
BIDIRECTED_LINK |
static int |
DIRECTED_LINK |
static int |
LOGICAL_NETWORK |
static int |
LRS_GEOMETRY_TYPE |
static int |
SDO_GEOMETRY_TYPE |
static int |
SPATIAL_NETWORK |
static int |
TOPO_GEOMETRY_TYPE |
static int |
UNDIRECTED_LINK |
Method Summary | |
void |
addLink(Link l) Adds a link to the network. |
void |
addLinks(Link[] linkArray) Adds an array of links to the network. |
void |
addNetwork(Network n) Adds a network to the current network. |
Node |
addNode(Link l, double distanceRatio, boolean isTemporary) Adds a node on a link to the network. |
void |
addNode(Node n) Adds a node to the network. |
void |
addNodes(Node[] nodeArray) Adds an array of nodes to the network. |
void |
addPath(Path path) Adds a path to the network. |
void |
addPaths(Path[] pathArray) Adds an array of paths to the network. |
Node |
addTemporaryNode(Link l, double distanceRatio) Adds a Temporary node (non-persistent) on a link. |
void |
clear() Clears all network structure. |
void |
clearTemporaryCache() Clears the temporatory cache |
java.lang.Object |
clone() Clones the network. |
boolean |
containsLink(int linkID) Checks if the network contains the given link |
boolean |
containsLink(java.lang.String linkID) Checks if the network contains the given link |
boolean |
containsNode(int nodeID) Checks if the network contains the given node |
boolean |
containsNode(java.lang.String nodeID) Checks if the network contains the given node |
boolean |
containsPath(int pathID) Checks if the network contains the given path |
boolean |
containsPath(java.lang.String pathID) Checks if the network contains the given path |
void |
deleteLink(int linkID) Deletes a link by ID. |
void |
deleteLink(Link l) Deletes a link. |
void |
deleteLink(java.lang.String linkID) Deletes a link by teh String ID. |
void |
deleteNetwork(Network n) Deletes a sub-network. |
void |
deleteNode(int nodeID) Deletes a node by ID. |
void |
deleteNode(Node n) Deletes a node. |
void |
deleteNode(java.lang.String nodeID) Deletes a node by the STring ID. |
void |
deletePath(int pathID) Deletes a path by ID. |
void |
deletePath(Path path) Deletes a path. |
void |
deletePath(java.lang.String pathID) Deletes a path by the String ID. |
void |
deleteTemporaryElements() Deletes all temporary elements (nodes and links). |
java.util.Iterator |
getExternalLinks() Returns the external links as an Iterator. |
java.util.Iterator |
getExternalLinks(boolean active) Returns the external links with the specified active flag as an Iterator. |
java.util.Iterator |
getExternalLinks(java.lang.String type) Returns the external links with the specified type as an Iterator. |
int[] |
getExternalNetworkIDs() Returns all external network IDs in an array of int. |
java.util.Iterator |
getExternalNodes() Returns the external nodes as an Iterator. |
java.util.Iterator |
getExternalNodes(boolean active) Returns the external nodes with the specified acvive flag as an Iterator |
java.util.Iterator |
getExternalNodes(int hierarchyLevel) Returns the external nodes with the specified hierarchy level as an Iterator. |
java.util.Iterator |
getExternalNodes(java.lang.String type) Returns the external nodes with the specified type as an Iterator. |
Link |
getLink(int linkID) Returns the link by ID. |
Link |
getLink(int startNodeID, int endNodeID) Returns the link by the start and the end node IDs |
Link |
getLink(java.lang.String linkID) Returns the link by the STring ID. |
Link[] |
getLinkArray() Returns the links as an array. |
Link[] |
getLinkArray(boolean active) Returns the links with the specified active flag as an array. |
Link[] |
getLinkArray(int hierarchyLevel) Returns the links with the specified hierarchy level as an array. |
Link[] |
getLinkArray(java.lang.String type) Returns the links with the specified type as an array. |
java.lang.String |
getLinkCostColumn() Returns the link cost column in the database. |
java.lang.String |
getLinkDurationColumn() Gets link duration column name |
java.lang.String |
getLinkGeomColumn() Returns the link geometry column name in the database. |
int[] |
getLinkHierarchyLevelArray() Returns the link hierarchy levels as an array. |
java.lang.String |
getLinkPartitionColumn() Returns the link partition column in the database. |
java.util.Iterator |
getLinks() Returns the links as an Iterator. |
java.util.Iterator |
getLinks(boolean active) Returns the links with the specified active flag as an Iterator. |
java.util.Iterator |
getLinks(int hierarchyLevel) Returns the links with the specified hierarchy level as an Iterator. |
java.util.Iterator |
getLinks(java.lang.String type) Returns the links with the specified type as an Iterator. |
java.util.Set |
getLinksByPartitionID(int partitionID) Returns the links with the specified partition ID as a Set. |
java.lang.String |
getLinkTableName() Returns the link table name in the database. |
java.lang.String |
getLRSGeomColumn() Returns the network LRS geometry column name in the database. |
java.lang.String |
getLRSTableName() Returns the network geometry (LRS) table name in the database. |
int |
getMaxLinkID() Returns the maximum link ID. |
int |
getMaxNodeID() Returns the maximun node ID. |
int |
getMaxPathID() Returns the maximum path ID. |
MBR |
getMBR() Returns the network MBR. |
NetworkMetadata |
getMetadata() Returns the network metadata. |
java.lang.String |
getMetadataViewName() Returns the network metadata view name (user_sdo_network_metadata). |
java.lang.String |
getName() Returns the network name. |
Network |
getNetworkAt(int hierarchyLevel) Returns the sub-network at the specified hierarchy level. |
oracle.spatial.network.NetworkCache |
getNetworkCache() Returns the network cache for editing purpose. |
int |
getNetworkID() Returns the network ID. |
Node |
getNode(int nodeID) Returns the node by ID. |
Node |
getNode(java.lang.String nodeID) Returns the node by the String ID. |
Node[] |
getNodeArray() Returns the nodes as an array. |
Node[] |
getNodeArray(boolean active) Returns the nodes with the specified acvive flag as an array. |
Node[] |
getNodeArray(int hierarchyLevel) Returns the nodes with the specified hierarchy level as an array. |
Node[] |
getNodeArray(java.lang.String type) Returns the nodes with the specified type as an array. |
java.lang.String |
getNodeCostColumn() Returns the node cost column in the database. |
java.lang.String |
getNodeDurationColumn() Gets node duration column name |
java.lang.String |
getNodeGeomColumn() Returns the node geometry column name in the database. |
int[] |
getNodeHierarchyLevelArray() Returns the node hierarchy levels as an array. |
java.lang.String |
getNodePartitionColumn() Returns the node partition column in the database. |
java.util.Iterator |
getNodes() Returns the nodes as an Iterator. |
java.util.Iterator |
getNodes(boolean active) Returns the nodes with the specified acvive flag as an Iterator |
java.util.Iterator |
getNodes(int hierarchyLevel) Returns the nodes with the specified hierarchy level as an Iterator. |
java.util.Iterator |
getNodes(java.lang.String type) Returns the nodes with the specified type as an Iterator. |
java.util.Set |
getNodesByPartitionID(int partitionID) Returns the nodes with the specified partition ID as a Set. |
java.lang.String |
getNodeTableName() Returns the node table name in the database. |
int |
getNoOfHierarchyLevels() Returns the number of hierarcchy levels. |
int |
getNoOfLinks() Returns the number of links. |
int |
getNoOfLinks(boolean active) Returns the number of links with the specified active flag. |
int |
getNoOfLinks(int hierarchyLevel) Returns the number of links with the specified hierarchy level. |
int |
getNoOfNodes() Returns the number of nodes. |
int |
getNoOfNodes(boolean active) Returns the number of nodes with the specified active flag. |
int |
getNoOfNodes(int hierarchyLevel) Returns the number of nodes with the specified hierachy level. |
int |
getNoOfPartitions() Returns the number of partitions. |
int |
getNoOfPaths() Returns the number of paths. |
int |
getNoOfPaths(boolean active) Returns the number of paths with the specified active flag. |
int |
getPartitionID() Return the partitionID of the network. |
java.lang.String |
getPartitionTableName() Returns the partition table name in the database. |
Path |
getPath(int pathID) Returns the path by ID. |
Path |
getPath(java.lang.String pathID) Returns the path by the String ID. |
Path[] |
getPathArray() Returns the paths as an array. |
Path[] |
getPathArray(boolean active) Returns the paths with the specified active flag as an array. |
Path[] |
getPathArray(java.lang.String type) Returns the paths with the specified type as an array. |
java.lang.String |
getPathGeomColumn() Returns the path geometry column name in the database. |
java.lang.String |
getPathLinkTableName() Returns the path link table name in the database. |
java.util.Iterator |
getPaths() Returns the paths as an Iterator. |
java.util.Iterator |
getPaths(boolean active) Returns paths with the specified active as an Iterator. |
java.util.Iterator |
getPaths(java.lang.String type) Returns the paths with the specified type as an Iterator. |
java.util.Set |
getPathsByPartitionID(int partitionID) Returns the paths of which the start nodes with the specified partition ID as a Set. |
java.lang.String |
getPathTableName() Returns the path table name in the database. |
Network |
getSubNetwork(MBR mbr) Returns the sub-network bound by the specified MBR. |
Link[] |
getTemporaryLinkArray() Returns all temporary links as an array. |
Node[] |
getTemporaryNodeArray() Returns all temporary nodes as an array. |
java.lang.Object |
getUserData() Gets user defined data. |
java.lang.Object |
getUserData(java.lang.String name) Gets user data |
boolean |
hasNodeCost() Checks if the network has node cost. |
boolean |
hasStringID() Checks if the network has String ID index |
Network |
intersectNetwork(Network network) Intersects the network with the given network. |
boolean |
isConnected() Checks if the network is connected. |
boolean |
isDirected() Checks if the network is directed. |
boolean |
isHierarchical() Checks if the network is hierarchical (hierarchy level > 1). |
boolean |
isLogical() Checks if the network is logical (without spatial information). |
boolean |
isLRSGeometry() Checks if the network is from an LRS geometry layer. |
boolean |
isModified() Checks if the network has been modified. |
boolean |
isPartition() Checks if the network is a network partition. |
boolean |
isPartitioned() Checks if the network is partitioned. |
boolean |
isPersistent() Checks if the network is persistent (stored in the database). |
boolean |
isReadOnly() Checks if the network is read-only to the database. |
boolean |
isSDOGeometry() Checks if the network is from an SDO geometry layer. |
boolean |
isSimple() Checks if the network is a simple network whcih does not refer to other networks |
boolean |
isSpatial() Checks if the network is spatial (with spatial information). |
boolean |
isTopoGeometry() Checks if the network is from a TOPO geometry layer. |
boolean |
isTree() Checks if the network is a tree. |
boolean |
isUndirected() Checks if the network is un-directed. |
Link[] |
nearestLink(double x, double y) Gets the nearest link in a spatial network The result is in an array of Link. |
Node[] |
nearestNode(double x, double y) Gets the nearest node in a spatial network The result is in an array of Node. |
boolean |
partitionedByLink() Checks if the network is partitioned by links |
boolean |
partitionedByNode() Checks if the network is partitioned by nodes |
void |
resetComponentNo(int no) Resets the node compomnent number to the specified number |
void |
setCategory(int category) Sets the network category. |
void |
setLinkDurationColumn(java.lang.String durationColumn) Sets link duration column name |
void |
setLinkPartitionColumn(java.lang.String partitionColumnName) Sets the link partition column name |
void |
setNodeDurationColumn(java.lang.String durationColumn) Sets node duration column name |
void |
setNodePartitionColumn(java.lang.String partitionColumnName) Sets the node partition column name |
void |
setNoOfHierarchyLevels(int no) Sets the number of hierarchy levels. |
void |
setPartitionTableName(java.lang.String partitionTableName) Sets partition table name |
void |
setStringIDIndex() Sets String ID indexes for nodes, links ,and paths. |
void |
setStringIDIndex(NDMStringID nodeStringID, NDMStringID linkStringID, NDMStringID pathStringID) Sets String ID indexes for nodes,links ,and paths. |
void |
setTemporaryCachingEnabled(boolean flag) Enable/Disable Temporatory Element caching. |
void |
setUserData(java.lang.Object userData) Sets user defined data. |
void |
setUserData(java.lang.String name, java.lang.Object data) Sets user data |
Field Detail |
public static final int LOGICAL_NETWORK
public static final int SPATIAL_NETWORK
public static final int UNDIRECTED_LINK
public static final int BIDIRECTED_LINK
public static final int DIRECTED_LINK
public static final int SDO_GEOMETRY_TYPE
public static final int LRS_GEOMETRY_TYPE
public static final int TOPO_GEOMETRY_TYPE
Method Detail |
public NetworkMetadata getMetadata()
public java.lang.String getName()
public Node[] getNodeArray()
public java.util.Iterator getNodes()
public java.util.Iterator getExternalNodes()
public Node[] getNodeArray(boolean active)
public java.util.Iterator getNodes(boolean active)
active
- the active flagpublic java.util.Iterator getExternalNodes(boolean active)
active
- the active flagpublic Node[] getNodeArray(int hierarchyLevel)
hierarchyLevel
- the hierarchy levelpublic java.util.Iterator getNodes(int hierarchyLevel)
hierarchyLevel
- the hierarchy level of the nodespublic java.util.Iterator getExternalNodes(int hierarchyLevel)
hierarchyLevel
- the hierarchy level of the nodespublic Node[] getNodeArray(java.lang.String type)
type
- the node typepublic java.util.Iterator getNodes(java.lang.String type)
type
- the node typepublic java.util.Iterator getExternalNodes(java.lang.String type)
type
- the node typepublic Link[] getLinkArray()
public java.util.Iterator getLinks()
public java.util.Iterator getExternalLinks()
public Link[] getLinkArray(boolean active)
active
- the active flagpublic java.util.Iterator getLinks(boolean active)
active
- the active flagpublic java.util.Iterator getExternalLinks(boolean active)
active
- the active flagpublic Link[] getLinkArray(int hierarchyLevel)
hierarchyLevel
- the hierarchy level of the nodespublic java.util.Iterator getLinks(int hierarchyLevel)
hierarchyLevel
- the hierarchy level of the nodespublic Link[] getLinkArray(java.lang.String type)
type
- the link typepublic java.util.Iterator getLinks(java.lang.String type)
type
- the link typepublic java.util.Iterator getExternalLinks(java.lang.String type)
type
- the link typepublic int getNoOfNodes()
public int getNoOfNodes(boolean active)
active
- the active flagpublic int getNoOfNodes(int hierarchyLevel)
hierarchyLevel
- the hierarchy levelpublic int getNoOfLinks()
public int getNoOfLinks(boolean active)
active
- the active flagpublic int getNoOfLinks(int hierarchyLevel)
hierarchyLevel
- the hierarchy levelpublic int getNoOfPaths()
public int getNoOfPaths(boolean active)
active
- the active flagpublic boolean isConnected()
public boolean isDirected()
public boolean isUndirected()
public boolean isLogical()
public boolean isSpatial()
public boolean isLRSGeometry()
public boolean isSDOGeometry()
public boolean isTopoGeometry()
public boolean isHierarchical()
public int getNoOfHierarchyLevels()
public int getNoOfPartitions()
public void clear()
public Node getNode(int nodeID) throws NetworkDataException
nodeID
- the node IDNetworkDataException
public Node getNode(java.lang.String nodeID) throws NetworkDataException
nodeID
- the node String IDNetworkDataException
public Link getLink(int linkID) throws NetworkDataException
linkID
- the link IDNetworkDataException
public Link getLink(java.lang.String linkID) throws NetworkDataException
linkID
- the link String IDNetworkDataException
public Link getLink(int startNodeID, int endNodeID) throws NetworkDataException
startNodeID
- the start node IDendNodeID
- the end node IDNetworkDataException
public Path getPath(int pathID) throws NetworkDataException
pathID
- the path IDNetworkDataException
public Path getPath(java.lang.String pathID) throws NetworkDataException
pathID
- the path IDNetworkDataException
public Path[] getPathArray()
public java.util.Iterator getPaths()
public Path[] getPathArray(boolean active)
active
- the active flagpublic java.util.Iterator getPaths(boolean active)
active
- the active flagpublic Path[] getPathArray(java.lang.String type)
type
- the path typepublic java.util.Iterator getPaths(java.lang.String type)
type
- the path typepublic void addNode(Node n) throws NetworkDataException
n
- the node to be addedNetworkDataException
public void addNodes(Node[] nodeArray) throws NetworkDataException
nodeArray
- the array of nodes to be addedNetworkDataException
public Node addNode(Link l, double distanceRatio, boolean isTemporary) throws NetworkDataException
l
- the link on which the node is addeddistanceRatio
- the ratio (between 0 and 1) from the start point of the linkisTemporary
- if the node is temporary nodeNetworkDataException
public Node addTemporaryNode(Link l, double distanceRatio) throws NetworkDataException
l
- the link on which the node is addeddistanceRatio
- ratio (between 0 and 1) from the start point of the linkNetworkDataException
public void addLink(Link l) throws NetworkDataException
l
- the link to be addedNetworkDataException
public void addLinks(Link[] linkArray) throws NetworkDataException
linkArray
- the array of links to be addedNetworkDataException
public void deleteNode(int nodeID) throws NetworkDataException
nodeID
- the node IDNetworkDataException
public void deleteNode(java.lang.String nodeID) throws NetworkDataException
nodeID
- the node String IDNetworkDataException
public void deleteNode(Node n)
n
- the node to be deletedpublic void deleteLink(int linkID) throws NetworkDataException
linkID
- the link IDNetworkDataException
public void deleteLink(java.lang.String linkID) throws NetworkDataException
linkID
- the link String IDNetworkDataException
public void deleteLink(Link l)
l
- the link to be deletedpublic void addPath(Path path) throws NetworkDataException
path
- the path to be addedNetworkDataException
public void addPaths(Path[] pathArray) throws NetworkDataException
pathArray
- the array of paths to be addedNetworkDataException
public void deletePath(int pathID) throws NetworkDataException
pathID
- the path to be deletedNetworkDataException
public void deletePath(java.lang.String pathID) throws NetworkDataException
pathID
- the path to be deletedNetworkDataException
public void deletePath(Path path)
path
- the path to be deletedpublic void resetComponentNo(int no)
no
- new component numberpublic boolean isTree()
public int getMaxNodeID()
public int getMaxLinkID()
public int getMaxPathID()
public Node[] getTemporaryNodeArray()
public Link[] getTemporaryLinkArray()
public void deleteTemporaryElements()
public Network getSubNetwork(MBR mbr)
mbr
- the specified MBRpublic void addNetwork(Network n) throws NetworkDataException
n
- the network to be addedNetworkDataException
public void deleteNetwork(Network n) throws NetworkDataException
n
- the sub-network to be deletedNetworkDataException
public void setNoOfHierarchyLevels(int no)
no
- the number of hierarchy levelspublic Network getNetworkAt(int hierarchyLevel)
hierarchyLevel
- the network hierarchy levelpublic java.lang.String getNodeTableName()
public java.lang.String getLinkTableName()
public java.lang.String getPathTableName()
public java.lang.String getPathLinkTableName()
public java.lang.String getPartitionTableName()
public java.lang.String getLRSTableName()
public java.lang.String getNodeGeomColumn()
public java.lang.String getLinkGeomColumn()
public java.lang.String getLinkCostColumn()
public java.lang.String getNodeCostColumn()
public java.lang.String getPathGeomColumn()
public java.lang.String getLRSGeomColumn()
public oracle.spatial.network.NetworkCache getNetworkCache()
public java.lang.String getMetadataViewName()
public int[] getNodeHierarchyLevelArray()
public int[] getLinkHierarchyLevelArray()
public MBR getMBR()
public java.util.Set getNodesByPartitionID(int partitionID)
public java.util.Set getLinksByPartitionID(int partitionID)
public java.util.Set getPathsByPartitionID(int partitionID)
public java.lang.String getNodePartitionColumn()
public java.lang.String getLinkPartitionColumn()
public java.lang.Object getUserData()
public void setUserData(java.lang.Object userData)
public boolean isPersistent()
public void setCategory(int category)
category
- the network category It is eitehr Network.SPATIAL_NETWORK or Network.LOGICAL_NETWORKpublic boolean hasNodeCost()
public boolean isModified()
public boolean isPartition()
public boolean isPartitioned()
public boolean partitionedByNode()
public boolean partitionedByLink()
public java.lang.Object clone()
public Network intersectNetwork(Network network) throws NetworkDataException
NetworkDataException
public int getNetworkID()
public void setStringIDIndex() throws NetworkDataException
NetworkDataException
public void setStringIDIndex(NDMStringID nodeStringID, NDMStringID linkStringID, NDMStringID pathStringID) throws NetworkDataException
nodeStringID
- node string ID interfacelinkStringID
- link string ID interfacepathStringID
- path string ID interfaceNetworkDataException
public boolean hasStringID()
public boolean isSimple()
public int[] getExternalNetworkIDs()
public int getPartitionID()
public void setNodePartitionColumn(java.lang.String partitionColumnName)
partitionColumnName
- node partition columnpublic void setLinkPartitionColumn(java.lang.String partitionColumnName)
partitionColumnName
- link partition columnpublic boolean isReadOnly()
public void setTemporaryCachingEnabled(boolean flag)
flag
- true if enabled, false disabledpublic void clearTemporaryCache()
public boolean containsNode(int nodeID)
public boolean containsLink(int linkID)
public boolean containsPath(int pathID)
public boolean containsNode(java.lang.String nodeID)
public boolean containsLink(java.lang.String linkID)
public boolean containsPath(java.lang.String pathID)
public void setPartitionTableName(java.lang.String partitionTableName)
public void setNodeDurationColumn(java.lang.String durationColumn)
public void setLinkDurationColumn(java.lang.String durationColumn)
public java.lang.String getNodeDurationColumn()
public java.lang.String getLinkDurationColumn()
public void setUserData(java.lang.String name, java.lang.Object data)
name
- name for the user datadata
- user datapublic java.lang.Object getUserData(java.lang.String name)
name
- name for the user datapublic Node[] nearestNode(double x, double y)
x
- first ordinate of the given pointy
- second ordinate of the given pointpublic Link[] nearestLink(double x, double y)
x
- first ordinate of the given pointy
- second ordinate of the given point
|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |