Oracle® Spatial Java API Reference
10g Release 2 (10.2)

B14373-01


oracle.spatial.network
Interface NetworkMetadata

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable

public interface NetworkMetadata
extends java.lang.Cloneable, java.io.Serializable

This class defines a network metadata.


Method Summary
 java.lang.Object clone()
          Clones the metadata.
 int getCategory()
          Returns the network category (spatial or logical).
 int getGeometryType()
          Returns the network geometry type.
 java.lang.String getLinkCostColumn()
          Returns the link cost column name.
 int getLinkDirection()
          Returns the network link type (directed, or undirected).
 java.lang.String getLinkDurationColumn()
          Gets link duration column name
 GeometryMetadata getLinkGeomMetadata()
          Returns the link geometry metadata.
 java.lang.String getLinkPartitionColumn()
          Returns the link partition column name.
 GeometryMetadata getLRSGeomMetadata()
          Returns the network LRS geometry metadata.
 java.lang.String getName()
          Returns the network name.
 Network getNetwork()
          Gets the network
 int getNetworkID()
          Gets the network ID.
 java.lang.String getNodeCostColumn()
          Returns the node cost column name.
 java.lang.String getNodeDurationColumn()
          Gets node duration column name
 GeometryMetadata getNodeGeomMetadata()
          Returns the node geometry metadata.
 java.lang.String getNodePartitionColumn()
          Returns the node partition column name.
 int getNoOfHierarchyLevels()
          Returns the number of hierarchy levels.
 int getNoOfPartitions()
          Returns the number of partitions.
 java.lang.String getPartitionTableName()
          Returns the partition table name.
 GeometryMetadata getPathGeomMetadata()
          Returns the path geometry metadata.
 java.lang.String getPathLinkTableName()
          Returns the path-link table name.
 java.lang.String getTopology()
          Returns topology name of the network
 java.lang.String getType()
          Returns the network type.
 java.lang.String getUser()
          Returns the network owner.
 java.lang.Object getUserData()
          Returns the user defined data.
 java.lang.Object getUserData(java.lang.String name)
          Gets user data
 boolean isComplex()
          Checks if the network is a complex network.
 boolean isDirected()
          Checks if the network is directed.
 boolean isHierarchical()
          Checks if the network is hierarchical.
 boolean isLogical()
          Checks if the network is logical.
 boolean isLRSGeometry()
          Checks if the network geometries are LRS SDO_GEOMETRY objects.
 boolean isPartitioned()
          Checks if the network is partiioned (no of partitions > 1 )
 boolean isSDOGeometry()
          Checks if the network geometries are SDO_GEOMETRY objects.
 boolean isSimple()
          Checks if the network is a simple network.
 boolean isSpatial()
          Checks if the network is spatial.
 boolean isTopoGeometry()
          Checks if the network geometries are SDO_TOPO_GEOMETRY objects.
 boolean isUndirected()
          Checks if the network is undirected.
 void setCategory(int category)
          Sets the network category.
 void setGeometryType(int geometryTtype)
          Sets the geometry type of the network
 void setLinkCostColumn(java.lang.String costColumn)
          Sets link cost column
 void setLinkDirection(int direction)
          Sets link diretion (Network.UNDIRECTED_LINK or Network.DIRECTED_LINK)
 void setLinkDurationColumn(java.lang.String durationColumn)
          Sets link duration column name
 void setLinkGeomMetadata(GeometryMetadata geomMetadata)
          Sets Link Geometry Metadata
 void setLinkPartitionColumn(java.lang.String partitionColumn)
          Sets link partition column
 void setLRSGeomMetadata(GeometryMetadata geomMetadata)
          Sets LRS Geometry Metadata
 void setNodeCostColumn(java.lang.String costColumn)
          Sets node cost column
 void setNodeDurationColumn(java.lang.String durationColumn)
          Sets node duration column name
 void setNodeGeomMetadata(GeometryMetadata geomMetadata)
          Sets Node Geometry Metadata
 void setNodePartitionColumn(java.lang.String partitionColumn)
          Sets node partition column
 void setNoOfHierarchyLevels(int no)
          Sets the number of hierarchy levels.
 void setNoOfPartitions(int no)
          Sets the number of partitions.
 void setPartitionTableName(java.lang.String partitionTableName)
          Sets partition table name
 void setPathGeomMetadata(GeometryMetadata geomMetadata)
          Sets Path Geometry Metadata
 void setType(java.lang.String type)
          Sets network type
 void setUserData(java.lang.Object userData)
          Sets user defined data.
 void setUserData(java.lang.String name, java.lang.Object data)
          Sets user data

 

Method Detail

getUser

public java.lang.String getUser()
Returns the network owner.

getName

public java.lang.String getName()
Returns the network name.

getCategory

public int getCategory()
Returns the network category (spatial or logical).

getType

public java.lang.String getType()
Returns the network type.

getLinkDirection

public int getLinkDirection()
Returns the network link type (directed, or undirected).

getGeometryType

public int getGeometryType()
Returns the network geometry type.

getUserData

public java.lang.Object getUserData()
Returns the user defined data.

setUserData

public void setUserData(java.lang.Object userData)
Sets user defined data.
Parameters:
userData - the user data

getNodeGeomMetadata

public GeometryMetadata getNodeGeomMetadata()
Returns the node geometry metadata.

getLinkGeomMetadata

public GeometryMetadata getLinkGeomMetadata()
Returns the link geometry metadata.

getLRSGeomMetadata

public GeometryMetadata getLRSGeomMetadata()
Returns the network LRS geometry metadata.

getPathGeomMetadata

public GeometryMetadata getPathGeomMetadata()
Returns the path geometry metadata.

getLinkCostColumn

public java.lang.String getLinkCostColumn()
Returns the link cost column name.

getNodeCostColumn

public java.lang.String getNodeCostColumn()
Returns the node cost column name.

getPartitionTableName

public java.lang.String getPartitionTableName()
Returns the partition table name.

getNodePartitionColumn

public java.lang.String getNodePartitionColumn()
Returns the node partition column name.

getLinkPartitionColumn

public java.lang.String getLinkPartitionColumn()
Returns the link partition column name.

getNoOfHierarchyLevels

public int getNoOfHierarchyLevels()
Returns the number of hierarchy levels.

getNoOfPartitions

public int getNoOfPartitions()
Returns the number of partitions.

getPathLinkTableName

public java.lang.String getPathLinkTableName()
Returns the path-link table name.

isHierarchical

public boolean isHierarchical()
Checks if the network is hierarchical.

isSpatial

public boolean isSpatial()
Checks if the network is spatial.

isLogical

public boolean isLogical()
Checks if the network is logical.

isDirected

public boolean isDirected()
Checks if the network is directed.

isUndirected

public boolean isUndirected()
Checks if the network is undirected.

setNoOfHierarchyLevels

public void setNoOfHierarchyLevels(int no)
Sets the number of hierarchy levels.
Parameters:
no - the number of hierarchy levels

setNoOfPartitions

public void setNoOfPartitions(int no)
Sets the number of partitions.
Parameters:
no - the number of partitions

isSDOGeometry

public boolean isSDOGeometry()
Checks if the network geometries are SDO_GEOMETRY objects.
Returns:
true if the geometry tyep is SDO_GEOMETRY, false otherwise

isLRSGeometry

public boolean isLRSGeometry()
Checks if the network geometries are LRS SDO_GEOMETRY objects.
Returns:
true if the geometry type is LRS SDO_GEOMETRY, false otherwise

isTopoGeometry

public boolean isTopoGeometry()
Checks if the network geometries are SDO_TOPO_GEOMETRY objects.
Returns:
true if the geometry type is SDO_TOPO_GEOMETRY, false otherwise

setCategory

public void setCategory(int category)
Sets the network category. (Network.LOGICAL_NETWORK or Network.SPATIAL_NETWORK)
Parameters:
category - the network category to be set

clone

public java.lang.Object clone()
Clones the metadata.

getNetworkID

public int getNetworkID()
Gets the network ID.

getNetwork

public Network getNetwork()
Gets the network

setNodeGeomMetadata

public void setNodeGeomMetadata(GeometryMetadata geomMetadata)
Sets Node Geometry Metadata

setLinkGeomMetadata

public void setLinkGeomMetadata(GeometryMetadata geomMetadata)
Sets Link Geometry Metadata

setPathGeomMetadata

public void setPathGeomMetadata(GeometryMetadata geomMetadata)
Sets Path Geometry Metadata

setLRSGeomMetadata

public void setLRSGeomMetadata(GeometryMetadata geomMetadata)
Sets LRS Geometry Metadata

setLinkCostColumn

public void setLinkCostColumn(java.lang.String costColumn)
Sets link cost column

setNodeCostColumn

public void setNodeCostColumn(java.lang.String costColumn)
Sets node cost column

setNodePartitionColumn

public void setNodePartitionColumn(java.lang.String partitionColumn)
Sets node partition column

setLinkPartitionColumn

public void setLinkPartitionColumn(java.lang.String partitionColumn)
Sets link partition column

setType

public void setType(java.lang.String type)
Sets network type

setLinkDirection

public void setLinkDirection(int direction)
Sets link diretion (Network.UNDIRECTED_LINK or Network.DIRECTED_LINK)

setGeometryType

public void setGeometryType(int geometryTtype)
Sets the geometry type of the network

isSimple

public boolean isSimple()
Checks if the network is a simple network. That is, it has no external references. to other networks

isComplex

public boolean isComplex()
Checks if the network is a complex network. That is, it refers other networks.

setPartitionTableName

public void setPartitionTableName(java.lang.String partitionTableName)
Sets partition table name

setNodeDurationColumn

public void setNodeDurationColumn(java.lang.String durationColumn)
Sets node duration column name

setLinkDurationColumn

public void setLinkDurationColumn(java.lang.String durationColumn)
Sets link duration column name

getNodeDurationColumn

public java.lang.String getNodeDurationColumn()
Gets node duration column name

getLinkDurationColumn

public java.lang.String getLinkDurationColumn()
Gets link duration column name

isPartitioned

public boolean isPartitioned()
Checks if the network is partiioned (no of partitions > 1 )

getTopology

public java.lang.String getTopology()
Returns topology name of the network

setUserData

public void setUserData(java.lang.String name,
                        java.lang.Object data)
Sets user data
Parameters:
name - name for the user data
data - user data

getUserData

public java.lang.Object getUserData(java.lang.String name)
Gets user data
Parameters:
name - name for the user data
Returns:
user data as an Java Object

Oracle® Spatial Java API Reference
10g Release 2 (10.2)

B14373-01


Copyright © 2005, Oracle. All Rights Reserved.