public class NetworkFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addBidirectedLinkColumn(java.sql.Connection conn, Network network)
add a bidirected column to the network link table
|
static void |
addColumn(java.sql.Connection conn, java.lang.String tableName, java.lang.String columnName, java.lang.String columnDataType)
Add a column in a database table
|
static void |
addUserDataSchema(java.sql.Connection conn, NetworkMetadata metadata) |
static Path |
createComplexPath(int id, Node startNode, Node endNode, Link[] links)
Creates a complex path with the specified start node and end node
|
static MDPoint[] |
createConvexHull(JGeometry geom)
Creates a convex hull as an array of MDpoint for the specified geometry.
|
static MDPoint[] |
createConvexHull(MDPoint[] points)
Creates the convex hull as an array of MDpoint for the specified array of MDPoints.
|
static MDPoint[] |
createConvexHull(Network network)
Creates the convex hull as an array of MDpoint for the specified network.
|
static Network |
createDirectedNetwork() |
static GeometryMetadata |
createGeometryMetadata(java.lang.String tableName)
Deprecated.
|
static GeometryMetadata |
createGeometryMetadata(java.lang.String owner, java.lang.String tableName)
Creates a geometry metadata.
|
static GeometryMetadata |
createGeometryMetadata(java.lang.String tableName, java.lang.String geomColumnName, int srid, int noOfDims)
Deprecated.
|
static GeometryMetadata |
createGeometryMetadata(java.lang.String owner, java.lang.String tableName, java.lang.String geomColumnName, int srid, int noOfDims)
Creates a spatial geometry metadata.
|
static Link |
createLink(int id, Network network, int startNodeID, int endNodeID, double cost)
Creates a logical network link.
|
static Link |
createLink(int id, Node startNode, Node endNode, double cost)
Creates a logical network link.
|
static Link |
createLink(int id, java.lang.String name, Node startNode, Node endNode, double cost)
Creates a logical network link.
|
JGeometry |
createLinkGeometry(int srid, int noOfDims, double[] ordArray)
Returns a link geometry (a linestring JGeometry).
|
static void |
createLinkTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomType, java.lang.String geomColumnName, java.lang.String costColumnName, int noOfHierarchyLevels)
Creates an empty network link table in the database.
|
static Link |
createLogicalLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost)
Creates a logical link.
|
static Network |
createLogicalNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected)
Creates an empty logical network with the default naming convension: node table name = network_name + "_NODE$", link table name = network_name + "_LINK$, path table name = network_name + "_PATH$", path-link table name = network_name + "PLINK$", subPath table name = network_name + "SPATH$", all cost column name="COST".
|
static Network |
createLogicalNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathLinkTableName)
Creates an empty logical network.
|
static Network |
createLogicalNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathLinkTableName, java.lang.String subPathTableName)
Creates an empty logical network.
|
static Node |
createLogicalNode(int nodeID, java.lang.String nodeName)
Creates a logical node.
|
static Link |
createLRSLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost, int geomID, double startMeasure, double endMeasure, JGeometry geom)
Creates an LRS geometry link.
|
static Network |
createLRSNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String lrsTableName, java.lang.String lrsGeomColumn)
Creates an empty spatial LRS_GEOMETRY network.
|
static Network |
createLRSNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String lrsTableName, java.lang.String lrsGeomColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName)
Creates an empty spatial LRS_GEOMETRY network.
|
static Network |
createLRSNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String lrsTableName, java.lang.String lrsGeomColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName, java.lang.String subPathTableName, java.lang.String subPathGeomColumn)
Creates an empty spatial LRS_GEOMETRY network.
|
static Node |
createLRSNode(int nodeID, java.lang.String nodeName, int geomID, double measure, JGeometry geom)
Creates an LRS geometry node.
|
static void |
createLRSTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomColumnName)
Creates an empty network LRS table in the database.
|
static MBR |
createMBR(double[] min, double[] max)
Creates an MBR.
|
static MBR |
createMBR(JGeometry geom)
Creates an MBR of the specified geometry.
|
static MDPoint |
createMDPoint(double x)
Creates a 1D MDPoint.
|
static MDPoint |
createMDPoint(double[] pt)
Creates an MDPoint.
|
static MDPoint |
createMDPoint(double x, double y)
Creates a 2D MDPoint.
|
static MDPoint |
createMDPoint(double x, double y, double z)
Creates a 3D MDPoint.
|
static Network |
createNetwork(Network network)
Creates an empty network from the specified network (metadata).
|
static void |
createNetworkTables(java.sql.Connection conn, Network network)
Creates the network tables based on the specified network metadata.
|
static Node |
createNode(int id)
Creates a logical network node.
|
static Node |
createNode(int id, double x, double y)
Creates a spatial network node.
|
static Node |
createNode(int id, java.lang.String name)
Creates a logical network node.
|
JGeometry |
createNodeGeometry(int srid, int noOfDims, double[] ordArray)
Returns a node point geometry (JGeometry).
|
static void |
createNodeTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomType, java.lang.String geomColumnName, java.lang.String costColumnName, int noOfHierarchyLevels)
Creates an empty network node table in the database.
|
static void |
createNodeTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomType, java.lang.String geomColumnName, java.lang.String costColumnName, java.lang.String partitionColumnName, int noOfHierarchyLevels)
Creates an empty network node table in the database.
|
static Network |
createPartitionNetwork(java.sql.Connection conn, java.lang.String networkName, java.lang.String partitionNetworkName)
Returns the partition network with the partitions as nodes and the connections between partitions as links.
|
static Network |
createPartitionNetwork(Network network, java.lang.String partitionNetworkName)
Returns the partition network with the partitions as nodes and the connections between partitions as links.
|
static void |
createPartitionTable(java.sql.Connection conn, java.lang.String tableName)
Creates an empty network partition table in the database.
|
static Path |
createPath(int id, Node startNode, Node endNode, Link[] links)
Creates a path with the specified start node and the specified end node.
|
static Path |
createPath(Node startNode, Node endNode)
Creates an empty path with the specified start node and end node.
|
static Path |
createPath(Node startNode, Node endNode, Link[] links)
Creates a path with the specified start node and the specified end node.
|
static void |
createPathLinkTable(java.sql.Connection conn, java.lang.String tableName)
Creates an empty network path-link table in the database.
|
static void |
createPathTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomColumnName)
Creates an empty network path table in the database.
|
static SDODimArray |
createSDODimArray(boolean isGeodetic, double lowerBound, double upperBound, double tolerance)
Creates a java 2D SDO_DIM_ARRAY.
|
static SDODimArray |
createSDODimArray(java.lang.String[] dimNames, double[] lowerBounds, double[] upperBounds, double[] tolerances)
Creates a java SDO_DIM_ARRAY.
|
static Link |
createSDOLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost, double[] ords, int dimNo, int srid)
Creates an SDO geometry link.
|
static Link |
createSDOLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost, JGeometry geom)
Creates an SDO geometry link.
|
static Network |
createSDONetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims)
Creates an empty spatial SDO_GEOMETRY network with the default naming convension: node table name = network_name + "_NODE$", link table name = network_name + "_LINK$, path table name = network_name + "_PATH$", path-link table name = network_name + "PLINK$", subpath table name = network_name + "_SPATH$", all geometry column
|
static Network |
createSDONetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeGeomColumn, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkGeomColumn, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName)
Creates an empty spatial SDO_GEOMETRY network.
|
static Network |
createSDONetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeGeomColumn, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkGeomColumn, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName, java.lang.String subPathTableName, java.lang.String subPathGeomColumn)
Creates an empty spatial SDO_GEOMETRY network.
|
static Node |
createSDONode(int nodeID, java.lang.String nodeName, double x, double y)
Creates a spatial node (SDO_GEOMETRY with SRID = 0).
|
static Node |
createSDONode(int nodeID, java.lang.String nodeName, double x, double y, int srid)
Creates a spatial node (SDO_GEOMETRY).
|
static Path |
createSimplePath(int id, Node startNode, Node endNode, Link[] links)
Creates a simple path with the specified start node and end node.
|
static SubPath |
createSubPath(int id, Path referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage)
Creates a sub path
|
static SubPath |
createSubPath(Path referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage)
Creates a sub path
|
static void |
createSubPathTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomColumnName)
Creates an empty network subpath table in the database.
|
static Tree |
createTree(TreeNode root)
Creates a tree.
|
static Tree |
createTree(TreeNode root, boolean forward)
Creates a tree.
|
static TreeLink |
createTreeLink(Link link)
Creates a tree link containing a regular network link
|
static TreeLink |
createTreeLink(Link link, double startPercentage, double endPercentage)
Creates a tree link containing a partial link
|
static TreeNode |
createTreeNode(Link link, double percentage)
Creates a tree node containg a node on a link
|
static TreeNode |
createTreeNode(Node node)
Creates a tree node containing a regular node
|
public static Network createDirectedNetwork()
public static Network createNetwork(Network network)
network
- the specified networkpublic static Node createNode(int id)
id
- the node IDpublic static Node createNode(int id, java.lang.String name)
id
- the node IDname
- node Namepublic static Node createNode(int id, double x, double y)
id
- the node IDx
- the x ordinatey
- the y ordinatepublic static Link createLink(int id, java.lang.String name, Node startNode, Node endNode, double cost)
id
- the link IDname
- the link namestartNode
- the start nodeendNode
- the end nodecost
- the link costpublic static Link createLink(int id, Node startNode, Node endNode, double cost)
id
- the link IDstartNode
- the start nodeendNode
- the end nodecost
- the link costpublic static Link createLink(int id, Network network, int startNodeID, int endNodeID, double cost) throws NetworkDataException
id
- the link IDnetwork
- the specified networkstartNodeID
- the start node IDendNodeID
- the end node IDcost
- the link costNetworkDataException
public static Path createPath(Node startNode, Node endNode)
startNode
- the start nodeendNode
- the end nodepublic static Path createSimplePath(int id, Node startNode, Node endNode, Link[] links) throws NetworkDataException
id
- the path IDstartNode
- the start nodeendNode
- the end nodelinks
- the array of the path linksNetworkDataException
public static Path createComplexPath(int id, Node startNode, Node endNode, Link[] links) throws NetworkDataException
id
- the path IDstartNode
- the start nodeendNode
- the end nodelinks
- the array of the path linksNetworkDataException
public static Path createPath(Node startNode, Node endNode, Link[] links)
startNode
- the start nodeendNode
- the end nodelinks
- the array of the path linkspublic static Path createPath(int id, Node startNode, Node endNode, Link[] links)
id
- the path IDstartNode
- the start nodeendNode
- the end nodelinks
- the array of the path linkspublic static MBR createMBR(double[] min, double[] max)
min
- the ordinates of low pointmax
- the ordinates of high pointpublic static MBR createMBR(JGeometry geom)
geom
- the specified geometrypublic static MDPoint createMDPoint(double[] pt)
pt
- the point ordinatespublic static MDPoint createMDPoint(double x)
x
- the x ordinatepublic static MDPoint createMDPoint(double x, double y)
x
- the x ordinatey
- the y ordinatepublic static MDPoint createMDPoint(double x, double y, double z)
x
- the x ordinatey
- the y ordinatez
- the z ordinatepublic static MDPoint[] createConvexHull(JGeometry geom)
geom
- the specified geometrypublic static MDPoint[] createConvexHull(MDPoint[] points)
points
-public static MDPoint[] createConvexHull(Network network)
network
- network from which the convex hull is to be createdpublic static GeometryMetadata createGeometryMetadata(java.lang.String tableName)
public static GeometryMetadata createGeometryMetadata(java.lang.String owner, java.lang.String tableName)
public static GeometryMetadata createGeometryMetadata(java.lang.String tableName, java.lang.String geomColumnName, int srid, int noOfDims)
tableName
- the geometry table NamegeomColumnName
- the geometry column namesrid
- the SRIDnoOfDims
- the number of dimensionspublic static GeometryMetadata createGeometryMetadata(java.lang.String owner, java.lang.String tableName, java.lang.String geomColumnName, int srid, int noOfDims)
tableName
- the geometry table NamegeomColumnName
- the geometry column namesrid
- the SRIDnoOfDims
- the number of dimensionspublic static Network createLogicalNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathLinkTableName)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?nodeTableName
- the node table name namenodeCostColumn
- the node cost columnlinkTableName
- the link table namelinkCostColumn
- the link cost column namepathTableName
- the path table namepathLinkTableName
- the path-link table namepublic static Network createLogicalNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathLinkTableName, java.lang.String subPathTableName)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?nodeTableName
- the node table name namenodeCostColumn
- the node cost columnlinkTableName
- the link table namelinkCostColumn
- the link cost column namepathTableName
- the path table namepathLinkTableName
- the path-link table nameisComplex
- is this network a complex network that referes to other networkspublic static Network createLogicalNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?public static Network createSDONetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeGeomColumn, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkGeomColumn, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?srid
- the SRIDnoOfDims
- the number of dimensionsnodeTableName
- the node table namenodeGeomColumn
- the node geometry column namenodeCostColumn
- the node cost column namelinkTableName
- the link table namelinkGeomColumn
- the link geometry column namelinkCostColumn
- the link cost column namepathTableName
- the path table namepathGeomColumn
- the path geometry column namepathLinkTableName
- the path link table namepublic static Network createSDONetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeGeomColumn, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkGeomColumn, java.lang.String linkCostColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName, java.lang.String subPathTableName, java.lang.String subPathGeomColumn)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?srid
- the SRIDnoOfDims
- the number of dimensionsnodeTableName
- the node table namenodeGeomColumn
- the node geometry column namenodeCostColumn
- the node cost column namelinkTableName
- the link table namelinkGeomColumn
- the link geometry column namelinkCostColumn
- the link cost column namepathTableName
- the path table namepathGeomColumn
- the path geometry column namepathLinkTableName
- the path link table namesubPathTableName
- the subpath table namesubPathGeomColumn
- the subpath geometry column namepublic static Network createSDONetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?srid
- the SRIDnoOfDims
- the number of dimensionspublic static Network createLRSNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String lrsTableName, java.lang.String lrsGeomColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName, java.lang.String subPathTableName, java.lang.String subPathGeomColumn)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?srid
- the SRIDnoOfDims
- the number of dimensionsnodeTableName
- the node table namenodeCostColumn
- the node cost column namelinkTableName
- the link table namelinkCostColumn
- the link cost column namelrsTableName
- the LRS table namelrsGeomColumn
- the LRS geometry column namepathTableName
- the path table namepathGeomColumn
- the path geometry columnpathLinkTableName
- the path link table namesubPathTableName
- the path table namesubPathGeomColumn
- the path geometry column networkspublic static Network createLRSNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String nodeTableName, java.lang.String nodeCostColumn, java.lang.String linkTableName, java.lang.String linkCostColumn, java.lang.String lrsTableName, java.lang.String lrsGeomColumn, java.lang.String pathTableName, java.lang.String pathGeomColumn, java.lang.String pathLinkTableName)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?srid
- the SRIDnoOfDims
- the number of dimensionsnodeTableName
- the node table namenodeCostColumn
- the node cost column namelinkTableName
- the link table namelinkCostColumn
- the link cost column namelrsTableName
- the LRS table namelrsGeomColumn
- the LRS geometry column namepathTableName
- the path table namepathGeomColumn
- the path geometry columnpathLinkTableName
- the path link table namepublic static Network createLRSNetwork(java.lang.String networkName, int noOfHierarchyLevels, boolean isDirected, int srid, int noOfDims, java.lang.String lrsTableName, java.lang.String lrsGeomColumn)
networkName
- the network namenoOfHierarchyLevels
- the number of hierarchy levelsisDirected
- is the network directed?srid
- the SRIDnoOfDims
- the number of dimensionslrsTableName
- the LRS table namelrsGeomColumn
- the LRS geometry column namepublic static void createNodeTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomType, java.lang.String geomColumnName, java.lang.String costColumnName, java.lang.String partitionColumnName, int noOfHierarchyLevels) throws java.sql.SQLException
conn
- the database connectiontableName
- the node table namegeomType
- the geometry type: (null | "SDO_GEOMETRY" |"LRS_GEOMETRY" | "TOPO_GEOMETRY"geomColumnName
- the geometry column namecostColumnName
- the node cost columnpartitionColumnName
- the node partition column namenoOfHierarchyLevels
- the number of hierarchy levelsjava.sql.SQLException
public static void createNodeTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomType, java.lang.String geomColumnName, java.lang.String costColumnName, int noOfHierarchyLevels) throws java.sql.SQLException
conn
- the database connectiontableName
- the node table namegeomType
- the geometry type: (null | "SDO_GEOMETRY" |"LRS_GEOMETRY" | "TOPO_GEOMETRY"geomColumnName
- the geometry column namecostColumnName
- the node cost columnnoOfHierarchyLevels
- the number of hierarchy levelsjava.sql.SQLException
public static void createLinkTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomType, java.lang.String geomColumnName, java.lang.String costColumnName, int noOfHierarchyLevels) throws java.sql.SQLException
conn
- the database connectiontableName
- the link table namegeomType
- geometry type: (null | "SDO_GEOMETRY" |"LRS_GEOMETRY" | "TOPO_GEOMETRY"geomColumnName
- the geometry column namecostColumnName
- the link cost column namenoOfHierarchyLevels
- the number of hierarchy levelsjava.sql.SQLException
public static void createLRSTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomColumnName) throws java.sql.SQLException
conn
- the database connectiontableName
- the LRS table namegeomColumnName
- the LRS geometry column namejava.sql.SQLException
public static void createPathTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomColumnName) throws java.sql.SQLException
conn
- the database connectiontableName
- the path table namegeomColumnName
- the path geometry column namejava.sql.SQLException
public static void createSubPathTable(java.sql.Connection conn, java.lang.String tableName, java.lang.String geomColumnName) throws java.sql.SQLException
conn
- the database connectiontableName
- the subpath table namegeomColumnName
- the subpath geometry column namejava.sql.SQLException
public static void createPathLinkTable(java.sql.Connection conn, java.lang.String tableName) throws java.sql.SQLException
conn
- the database connectiontableName
- the path-link table namejava.sql.SQLException
public static void createPartitionTable(java.sql.Connection conn, java.lang.String tableName) throws java.sql.SQLException
conn
- the database connectiontableName
- the partition table namejava.sql.SQLException
public static Node createLogicalNode(int nodeID, java.lang.String nodeName)
nodeID
- the node IDnodeName
- the node namepublic static Node createSDONode(int nodeID, java.lang.String nodeName, double x, double y, int srid)
nodeID
- the node IDnodeName
- the node namex
- the x ordiaatey
- the y ordinatesrid
- SRID for the node geometrypublic static Node createSDONode(int nodeID, java.lang.String nodeName, double x, double y)
nodeID
- the node IDnodeName
- the node namex
- the x ordiaatey
- the y ordinatepublic static Node createLRSNode(int nodeID, java.lang.String nodeName, int geomID, double measure, JGeometry geom)
nodeID
- the node IDnodeName
- the node namegeomID
- the LRS geometry IDmeasure
- the LRS node measuregeom
- the node geometrypublic static Link createLogicalLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost)
linkID
- the link IDlinkName
- the link namestartNode
- the start nodeendNode
- the end nodecost
- the link costpublic static Link createSDOLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost, double[] ords, int dimNo, int srid)
linkID
- the link IDlinkName
- the link namestartNode
- the start nodeendNode
- the end nodecost
- the link costords
- the geometry odrinatesdimNo
- the number of dimensionssrid
- the SRIDpublic static Link createSDOLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost, JGeometry geom)
linkID
- the link IDlinkName
- the link namestartNode
- the start nodeendNode
- the end nodecost
- the link costgeom
- the link geometrypublic static Link createLRSLink(int linkID, java.lang.String linkName, Node startNode, Node endNode, double cost, int geomID, double startMeasure, double endMeasure, JGeometry geom)
linkID
- the link IDlinkName
- the link namestartNode
- the start nodeendNode
- the end nodecost
- the link costgeom
- the link geometrygeomID
- the LRS geometry IDstartMeasure
- the LRS start measureendMeasure
- the LRS end measurepublic static void createNetworkTables(java.sql.Connection conn, Network network) throws java.sql.SQLException, NetworkDataException
conn
- the database connectionnetwork
- the specified networkjava.sql.SQLException
NetworkDataException
public static SDODimArray createSDODimArray(java.lang.String[] dimNames, double[] lowerBounds, double[] upperBounds, double[] tolerances)
dimNames
- the dimension nameslowerBounds
- the lower boundsupperBounds
- the upper boundstolerances
- the tolerancespublic static SDODimArray createSDODimArray(boolean isGeodetic, double lowerBound, double upperBound, double tolerance)
isGeodetic
- is it in a geodetic coordinate (lat., lon.)?lowerBound
- the lower boundupperBound
- the upper boundtolerance
- the tolerancepublic JGeometry createNodeGeometry(int srid, int noOfDims, double[] ordArray)
srid
- the SRIDnoOfDims
- the number of dimensionsordArray
- the ordinate array of the point geometrypublic JGeometry createLinkGeometry(int srid, int noOfDims, double[] ordArray)
srid
- the SRIDnoOfDims
- the number of the dimensionsordArray
- the ordinate array of the link geometry(x1,y1,....xn,yn)public static Network createPartitionNetwork(java.sql.Connection conn, java.lang.String networkName, java.lang.String partitionNetworkName) throws java.sql.SQLException, NetworkDataException
conn
- the database connectionnetworkName
- the network namepartitionNetworkName
- the resulting partition network namejava.sql.SQLException
NetworkDataException
public static Network createPartitionNetwork(Network network, java.lang.String partitionNetworkName) throws NetworkDataException
network
- the network namepartitionNetworkName
- the resulting partition network nameNetworkDataException
public static void addColumn(java.sql.Connection conn, java.lang.String tableName, java.lang.String columnName, java.lang.String columnDataType) throws java.sql.SQLException, NetworkDataException
conn
- database connectiontableName
- table namecolumnName
- column name to be addedcolumnDataType
- data type for the columnjava.sql.SQLException
NetworkDataException
public static void addBidirectedLinkColumn(java.sql.Connection conn, Network network) throws java.sql.SQLException, NetworkDataException
conn
- database connectionnetwork
- network objectjava.sql.SQLException
NetworkDataException
public static void addUserDataSchema(java.sql.Connection conn, NetworkMetadata metadata) throws java.sql.SQLException, NetworkDataException
java.sql.SQLException
NetworkDataException
public static SubPath createSubPath(Path referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage) throws NetworkDataException
referencePath
- reference path for the sub pathstartLinkIndex
- start link index of the sub path [0,noOfLinks-1]startPercentage
- end link index of the sub path [0,noOfLinks-1]endLinkIndex
- start percentage of the sub path [0,1]endPercentage
- end percentage of the sub path [0,1]NetworkDataException
public static SubPath createSubPath(int id, Path referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage) throws NetworkDataException
id
- subpath IDreferencePath
- reference path for the sub pathstartLinkIndex
- start link index of the sub path [0,noOfLinks-1]startPercentage
- end link index of the sub path [0,noOfLinks-1]endLinkIndex
- start percentage of the sub path [0,1]endPercentage
- end percentage of the sub path [0,1]NetworkDataException
public static Tree createTree(TreeNode root, boolean forward)
root
- root node of the treeforward
- true if the traverse direction is forward (starting from root), false backwardpublic static Tree createTree(TreeNode root)
root
- root node of the treepublic static TreeNode createTreeNode(Node node)
node
- a network nodepublic static TreeNode createTreeNode(Link link, double percentage) throws NetworkDataException
link
- given network linkpercentage
- percentage information (between 0 and 1)NetworkDataException
public static TreeLink createTreeLink(Link link)
link
- network linkpublic static TreeLink createTreeLink(Link link, double startPercentage, double endPercentage) throws NetworkDataException
link
- the given network linkstartPercentage
- start percentage of the partial linkendPercentage
- end percentage of the partial linkNetworkDataException