Skip navigation links

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


oracle.spatial.network.lod
Class LODNetworkFactory

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


public class LODNetworkFactory
extends java.lang.Object

This class handles network element creation for Oracle Spatial Network Data Model.

Since:
11gR1

Method Summary
static LogicalBasicNetwork createLogicalBasicNetwork(java.lang.String networkName)
          Creates an empty logical network.
static LogicalBasicNetwork createLogicalBasicNetwork(java.lang.String networkName, int numNodes, int numLinks)
          Creates an empty logical network.
static LogicalHeavyPath createLogicalHeavyPath(LogicalLink[] links, LogicalNode[] nodes, LODUserDataIO udio)
          Creates a heavy-weight logical path, which contains the object representation of the links and nodes on the path.
static LogicalHeavyPath createLogicalHeavyPath(LogicalLink[] links, LogicalNode[] nodes, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a heavy-weight logical path, which contains the object representation of the links and nodes on the path.
static LogicalLink createLogicalLink(long id, int level, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, LODUserDataIO udio)
          Creates a stand-alone logical link.
static LogicalLink createLogicalLink(long id, int level, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a stand-alone logical link.
static LogicalLink createLogicalLink(long id, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, LODUserDataIO udio)
          Creates a stand-alone logical link.
static LogicalLink createLogicalLink(long id, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a stand-alone logical link.
static LogicalNetLink createLogicalNetLink(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, LODUserDataIO udio)
          Creates a logical link with reference to its start and end node objects.
static LogicalNetLink createLogicalNetLink(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a logical link with reference to its start and end node objects.
static LogicalNetLink createLogicalNetLink(long id, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, LODUserDataIO udio)
          Creates a logical link with reference to its start and end node objects.
static LogicalNetLink createLogicalNetLink(long id, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a logical link with reference to its start and end node objects.
static LogicalNetNode createLogicalNetNode(long id, double cost, boolean isActive, LODUserDataIO udio)
          Creates a logical node to which we can add reference to incident links.
static LogicalNetNode createLogicalNetNode(long id, double cost, boolean isActive, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a logical node to which we can add reference to incident links.
static LogicalNode createLogicalNode(long id, double cost, boolean isActive, LODUserDataIO udio)
          Creates a stand-alone logical node.
static LogicalNode createLogicalNode(long id, double cost, boolean isActive, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a stand-alone logical node.
static LogicalPartition createLogicalPartition(java.lang.String networkName, int partitionId)
          Creates an empty logical partition.
static LogicalPartition createLogicalPartition(java.lang.String networkName, int partitionId, int numInternalNodes, int numExternalNodes, int numInternalLinks, int numBoundaryLinks)
          Creates an empty logical partition.
static LogicalPath createLogicalPath(long[] linkIds, long[] nodeIds, double cost, LODUserDataIO udio)
          Creates a light-weight logical path, which contains only the IDs of the links and the nodes on the path, instead of the link and node objects.
static LogicalPath createLogicalPath(long[] linkIds, long[] nodeIds, double cost, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a light-weight logical path, which contains only the IDs of the links and the nodes on the path, instead of the link and node objects.
static LogicalSubPath createLogicalSubPath(LogicalPath refPath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double cost, LODUserDataIO udio)
          Creates a logical sub-path.
static LogicalSubPath createLogicalSubPath(LogicalPath refPath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double cost, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a logical sub-path.
static SpatialBasicNetwork createSpatialBasicNetwork(java.lang.String networkName)
          Creates an empty spatial network.
static SpatialBasicNetwork createSpatialBasicNetwork(java.lang.String networkName, int numNodes, int numLinks)
          Creates an empty spatial network.
static SpatialHeavyPath createSpatialHeavyPath(SpatialLink[] links, SpatialNode[] nodes, JGeometry geometry, LODUserDataIO udio)
          Creates a heavy-weight spatial path, which contains the object representation of the links and nodes on the path.
static SpatialLink createSpatialLink(long id, int level, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, LODUserDataIO udio)
          Creates a stand-alone spatial link.
static SpatialLink createSpatialLink(long id, int level, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a stand-alone spatial link.
static SpatialLink createSpatialLink(long id, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, LODUserDataIO udio)
          Creates a stand-alone spatial link.
static SpatialLink createSpatialLink(long id, long startNodeId, long endNodeId, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a stand-alone spatial link.
static SpatialNetLink createSpatialNetLink(long id, int level, SpatialNetNode startNode, SpatialNetNode endNode, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, LODUserDataIO udio)
          Creates a spatial link with reference to its start and end node objects.
static SpatialNetLink createSpatialNetLink(long id, int level, SpatialNetNode startNode, SpatialNetNode endNode, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a spatial link with reference to its start and end node objects.
static SpatialNetLink createSpatialNetLink(long id, SpatialNetNode startNode, SpatialNetNode endNode, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, LODUserDataIO udio)
          Creates a spatial link with reference to its start and end node objects.
static SpatialNetLink createSpatialNetLink(long id, SpatialNetNode startNode, SpatialNetNode endNode, double cost, boolean isBidirected, boolean isActive, JGeometry geometry, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a spatial link with reference to its start and end node objects.
static SpatialNode createSpatialNode(long id, double cost, boolean isActive, JGeometry geometry, LODUserDataIO udio)
          Creates a stand-alone spatial node.
static SpatialNode createSpatialNode(long id, double cost, boolean isActive, JGeometry geometry, java.util.Map<java.lang.String,java.lang.Object> userData)
          Creates a stand-alone spatial node.
static SpatialPartition createSpatialPartition(java.lang.String networkName, int partitionId)
          Creates an empty spatial partition.
static SpatialPartition createSpatialPartition(java.lang.String networkName, int partitionId, int numInternalNodes, int numExternalNodes, int numInternalLinks, int numBoundaryLinks)
          Creates an empty spatial partition.
static SpatialPath createSpatialPath(long[] linkIds, long[] nodeIds, double cost, JGeometry geometry, LODUserDataIO udio)
          Creates a light-weight spatial path, which contains only the IDs of the links and the nodes on the path, instead of the link and node objects.
static SpatialSubPath createSpatialSubPath(SpatialPath referencePath, int startLinkIndex, int endLinkIndex, double startPercentage, double endPercentage, double cost, JGeometry geometry, LODUserDataIO udio)
          Creates a spatial sub-path.

 

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

 

Method Detail

createLogicalBasicNetwork

public static LogicalBasicNetwork createLogicalBasicNetwork(java.lang.String networkName)
Creates an empty logical network.
Parameters:
networkName - network name
Returns:
an empty logical network

createLogicalBasicNetwork

public static LogicalBasicNetwork createLogicalBasicNetwork(java.lang.String networkName,
                                                            int numNodes,
                                                            int numLinks)
Creates an empty logical network. The variables in this netowrk is initialized according to the input number of nodes and links. Compared with the previous method, using this method will improve the performance of adding node and links to the network later on.
Parameters:
networkName - network name
numNodes - estimated number of nodes
numLinks - estimated number of links
Returns:
an empty network

createLogicalPartition

public static LogicalPartition createLogicalPartition(java.lang.String networkName,
                                                      int partitionId)
Creates an empty logical partition.
Parameters:
networkName - network name
partitionId - partition ID
Returns:
an empty logical partition

createLogicalPartition

public static LogicalPartition createLogicalPartition(java.lang.String networkName,
                                                      int partitionId,
                                                      int numInternalNodes,
                                                      int numExternalNodes,
                                                      int numInternalLinks,
                                                      int numBoundaryLinks)
Creates an empty logical partition. The variables in this partition are initialized according to the estimated nubmer of nodes and links. Compared with the previous method, using this method will improve the performance of adding node and links to the partition later on.
Parameters:
networkName - network name
partitionId - partition ID
numInternalNodes - estimated number of internal nodes
numExternalNodes - estimated number of external nodes
numInternalLinks - estimated number of internal links
numBoundaryLinks - estimated number of external links
Returns:
an empty logical partition

createLogicalNode

public static LogicalNode createLogicalNode(long id,
                                            double cost,
                                            boolean isActive,
                                            LODUserDataIO udio)
Creates a stand-alone logical node.
Parameters:
id - node ID
cost - node cost
isActive - whether the node is active or not
udio - user data IO implementation
Returns:
logical node

createLogicalNode

public static LogicalNode createLogicalNode(long id,
                                            double cost,
                                            boolean isActive,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a stand-alone logical node.
Parameters:
id - node ID
cost - node cost
isActive - whether the node is active or not
userData - user data name-value pairs
Returns:
logical node

createLogicalNetNode

public static LogicalNetNode createLogicalNetNode(long id,
                                                  double cost,
                                                  boolean isActive,
                                                  LODUserDataIO udio)
Creates a logical node to which we can add reference to incident links.
Parameters:
id - node ID
cost - node cost
isActive - whether the node is active or not
udio - user data IO implementation
Returns:
a logical node to which we can add reference to incident links

createLogicalNetNode

public static LogicalNetNode createLogicalNetNode(long id,
                                                  double cost,
                                                  boolean isActive,
                                                  java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a logical node to which we can add reference to incident links.
Parameters:
id - node ID
cost - node cost
isActive - whether the node is active or not
userData - user data name-value pairs
Returns:
a logical node to which we can add reference to incident links

createLogicalLink

public static LogicalLink createLogicalLink(long id,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            LODUserDataIO udio)
Creates a stand-alone logical link.
Parameters:
id - link ID
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a stand-alone logical link

createLogicalLink

public static LogicalLink createLogicalLink(long id,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a stand-alone logical link.
Parameters:
id - link ID
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pairs
Returns:
a stand-alone logical link

createLogicalLink

public static LogicalLink createLogicalLink(long id,
                                            int level,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            LODUserDataIO udio)
Creates a stand-alone logical link.
Parameters:
id - link ID
level - link level
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a stand-alone logical link

createLogicalLink

public static LogicalLink createLogicalLink(long id,
                                            int level,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a stand-alone logical link.
Parameters:
id - link ID
level - link level
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pairs
Returns:
a stand-alone logical link

createLogicalNetLink

public static LogicalNetLink createLogicalNetLink(long id,
                                                  LogicalNetNode startNode,
                                                  LogicalNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  LODUserDataIO udio)
Creates a logical link with reference to its start and end node objects.
Parameters:
id - link ID
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a logical link with reference to its start and end node objects

createLogicalNetLink

public static LogicalNetLink createLogicalNetLink(long id,
                                                  LogicalNetNode startNode,
                                                  LogicalNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a logical link with reference to its start and end node objects.
Parameters:
id - link ID
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pairs
Returns:
a logical link with reference to its start and end node objects

createLogicalNetLink

public static LogicalNetLink createLogicalNetLink(long id,
                                                  int level,
                                                  LogicalNetNode startNode,
                                                  LogicalNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  LODUserDataIO udio)
Creates a logical link with reference to its start and end node objects.
Parameters:
id - link ID
level - link level
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a logical link with reference to its start and end node objects

createLogicalNetLink

public static LogicalNetLink createLogicalNetLink(long id,
                                                  int level,
                                                  LogicalNetNode startNode,
                                                  LogicalNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a logical link with reference to its start and end node objects.
Parameters:
id - link ID
level - link level
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pairs
Returns:
a logical link with reference to its start and end node objects

createLogicalPath

public static LogicalPath createLogicalPath(long[] linkIds,
                                            long[] nodeIds,
                                            double cost,
                                            LODUserDataIO udio)
Creates a light-weight logical path, which contains only the IDs of the links and the nodes on the path, instead of the link and node objects.
Parameters:
linkIds - IDs of the links on the path
nodeIds - IDs of the nodes on the path
cost - path cost, which is the sum of all the link and nodes on the path less the cost of the start and end nodes.
udio - user data IO implementation
Returns:
a light-weight logical path

createLogicalPath

public static LogicalPath createLogicalPath(long[] linkIds,
                                            long[] nodeIds,
                                            double cost,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a light-weight logical path, which contains only the IDs of the links and the nodes on the path, instead of the link and node objects.
Parameters:
linkIds - IDs of the links on the path
nodeIds - IDs of the nodes on the path
cost - path cost, which is the sum of all the link and nodes on the path less the cost of the start and end nodes.
userData - user data name-value pairs
Returns:
a light-weight logical path

createLogicalHeavyPath

public static LogicalHeavyPath createLogicalHeavyPath(LogicalLink[] links,
                                                      LogicalNode[] nodes,
                                                      LODUserDataIO udio)
Creates a heavy-weight logical path, which contains the object representation of the links and nodes on the path.
Parameters:
links - links on the path
nodes - nodes on the path
udio - user data IO implementation
Returns:
a heavy-weight logical path

createLogicalHeavyPath

public static LogicalHeavyPath createLogicalHeavyPath(LogicalLink[] links,
                                                      LogicalNode[] nodes,
                                                      java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a heavy-weight logical path, which contains the object representation of the links and nodes on the path.
Parameters:
links - links on the path
nodes - nodes on the path
userData - user data name-value pairs
Returns:
a heavy-weight logical path

createLogicalSubPath

public static LogicalSubPath createLogicalSubPath(LogicalPath refPath,
                                                  int startLinkIndex,
                                                  double startPercentage,
                                                  int endLinkIndex,
                                                  double endPercentage,
                                                  double cost,
                                                  LODUserDataIO udio)
Creates a logical sub-path.
Parameters:
refPath - the reference path that contains the sub-path
startLinkIndex - index of the start link
startPercentage - location of the start point represented as a percentage on the start link
endLinkIndex - index of the end link
endPercentage - location of the end point represented as a percentage on the end link
cost - sub-path cost
udio - user data IO implementation
Returns:
a logical sub-path

createLogicalSubPath

public static LogicalSubPath createLogicalSubPath(LogicalPath refPath,
                                                  int startLinkIndex,
                                                  double startPercentage,
                                                  int endLinkIndex,
                                                  double endPercentage,
                                                  double cost,
                                                  java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a logical sub-path.
Parameters:
refPath - the reference path that contains the sub-path
startLinkIndex - index of the start link
startPercentage - location of the start point represented as a percentage on the start link
endLinkIndex - index of the end link
endPercentage - location of the end point represented as a percentage on the end link
cost - sub-path cost
userData - user data name-value pairs
Returns:
a logical sub-path

createSpatialBasicNetwork

public static SpatialBasicNetwork createSpatialBasicNetwork(java.lang.String networkName)
Creates an empty spatial network.
Parameters:
networkName - network name
Returns:
an empty spatial network

createSpatialBasicNetwork

public static SpatialBasicNetwork createSpatialBasicNetwork(java.lang.String networkName,
                                                            int numNodes,
                                                            int numLinks)
Creates an empty spatial network. The variables in this netowrk is initialized according to the input number of nodes and links. Compared with the previous method, using this method will improve the performance of adding node and links to the network later on.
Parameters:
networkName - network name
numNodes - estimated number of nodes
numLinks - estimated number of links
Returns:
an empty spatial network

createSpatialPartition

public static SpatialPartition createSpatialPartition(java.lang.String networkName,
                                                      int partitionId)
Creates an empty spatial partition.
Parameters:
networkName - network name
partitionId - partition ID
Returns:
an empty spatial partition

createSpatialPartition

public static SpatialPartition createSpatialPartition(java.lang.String networkName,
                                                      int partitionId,
                                                      int numInternalNodes,
                                                      int numExternalNodes,
                                                      int numInternalLinks,
                                                      int numBoundaryLinks)
Creates an empty spatial partition. The variables in this partition are initialized according to the estimated nubmer of nodes and links. Compared with the previous method, using this method will improve the performance of adding node and links to the partition later on.
Parameters:
networkName - network name
partitionId - partition ID
numInternalNodes - estimated number of internal nodes
numExternalNodes - estimated number of external nodes
numInternalLinks - estimated number of internal links
numBoundaryLinks - estimated number of external links
Returns:
an empty spatial partition

createSpatialNode

public static SpatialNode createSpatialNode(long id,
                                            double cost,
                                            boolean isActive,
                                            JGeometry geometry,
                                            LODUserDataIO udio)
Creates a stand-alone spatial node.
Parameters:
id - node ID
cost - node cost
isActive - whether the node is active or not
udio - user data IO implementation
Returns:
spatial node

createSpatialNode

public static SpatialNode createSpatialNode(long id,
                                            double cost,
                                            boolean isActive,
                                            JGeometry geometry,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a stand-alone spatial node.
Parameters:
id - node ID
cost - node cost
isActive - whether the node is active or not
userData - user data name-value pairs
Returns:
spatial node

createSpatialLink

public static SpatialLink createSpatialLink(long id,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            JGeometry geometry,
                                            LODUserDataIO udio)
Creates a stand-alone spatial link.
Parameters:
id - link ID
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a stand-alone spatial link

createSpatialLink

public static SpatialLink createSpatialLink(long id,
                                            int level,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            JGeometry geometry,
                                            LODUserDataIO udio)
Creates a stand-alone spatial link.
Parameters:
id - link ID
level - link level
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a stand-alone spatial link

createSpatialLink

public static SpatialLink createSpatialLink(long id,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            JGeometry geometry,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a stand-alone spatial link.
Parameters:
id - link ID
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pair
Returns:
a stand-alone spatial link

createSpatialLink

public static SpatialLink createSpatialLink(long id,
                                            int level,
                                            long startNodeId,
                                            long endNodeId,
                                            double cost,
                                            boolean isBidirected,
                                            boolean isActive,
                                            JGeometry geometry,
                                            java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a stand-alone spatial link.
Parameters:
id - link ID
level - link level
startNodeId - start node ID
endNodeId - end node ID
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pair
Returns:
a stand-alone spatial link

createSpatialNetLink

public static SpatialNetLink createSpatialNetLink(long id,
                                                  SpatialNetNode startNode,
                                                  SpatialNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  JGeometry geometry,
                                                  LODUserDataIO udio)
Creates a spatial link with reference to its start and end node objects.
Parameters:
id - link ID
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a spatial link with reference to its start and end node objects

createSpatialNetLink

public static SpatialNetLink createSpatialNetLink(long id,
                                                  int level,
                                                  SpatialNetNode startNode,
                                                  SpatialNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  JGeometry geometry,
                                                  LODUserDataIO udio)
Creates a spatial link with reference to its start and end node objects.
Parameters:
id - link ID
level - link level
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
udio - user data IO implementation
Returns:
a spatial link with reference to its start and end node objects

createSpatialNetLink

public static SpatialNetLink createSpatialNetLink(long id,
                                                  SpatialNetNode startNode,
                                                  SpatialNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  JGeometry geometry,
                                                  java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a spatial link with reference to its start and end node objects.
Parameters:
id - link ID
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pairs
Returns:
a spatial link with reference to its start and end node objects

createSpatialNetLink

public static SpatialNetLink createSpatialNetLink(long id,
                                                  int level,
                                                  SpatialNetNode startNode,
                                                  SpatialNetNode endNode,
                                                  double cost,
                                                  boolean isBidirected,
                                                  boolean isActive,
                                                  JGeometry geometry,
                                                  java.util.Map<java.lang.String,java.lang.Object> userData)
Creates a spatial link with reference to its start and end node objects.
Parameters:
id - link ID
level - link level
startNode - start node object
endNode - end node object
cost - link cost
isBidirected - whether the link is bidirected or not
isActive - whether the link is active or not
userData - user data name-value pairs
Returns:
a spatial link with reference to its start and end node objects

createSpatialPath

public static SpatialPath createSpatialPath(long[] linkIds,
                                            long[] nodeIds,
                                            double cost,
                                            JGeometry geometry,
                                            LODUserDataIO udio)
Creates a light-weight spatial path, which contains only the IDs of the links and the nodes on the path, instead of the link and node objects.
Parameters:
linkIds - IDs of the links on the path
nodeIds - IDs of the nodes on the path
cost - path cost, which is the sum of all the link and nodes on the path less the cost of the start and end nodes.
udio - user data IO implementation
Returns:
a light-weight spatial path

createSpatialSubPath

public static SpatialSubPath createSpatialSubPath(SpatialPath referencePath,
                                                  int startLinkIndex,
                                                  int endLinkIndex,
                                                  double startPercentage,
                                                  double endPercentage,
                                                  double cost,
                                                  JGeometry geometry,
                                                  LODUserDataIO udio)
Creates a spatial sub-path.
Parameters:
referencePath - the reference path that contains the sub-path
startLinkIndex - index of the start link
startPercentage - location of the start point represented as a percentage on the start link
endLinkIndex - index of the end link
endPercentage - location of the end point represented as a percentage on the end link
cost - sub-path cost
udio - user data IO implementation
Returns:
a spatial sub-path

createSpatialHeavyPath

public static SpatialHeavyPath createSpatialHeavyPath(SpatialLink[] links,
                                                      SpatialNode[] nodes,
                                                      JGeometry geometry,
                                                      LODUserDataIO udio)
Creates a heavy-weight spatial path, which contains the object representation of the links and nodes on the path.
Parameters:
links - links on the path
nodes - nodes on the path
udio - user data IO implementation
Returns:
a heavy-weight spatial path

Skip navigation links

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


Copyright © 2007, Oracle. All Rights Reserved.