org.h2gis.network.graph_creator
Class ST_ShortestPathTree

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.network.graph_creator.GraphFunction
          extended by org.h2gis.network.graph_creator.ST_ShortestPathTree
All Implemented Interfaces:
Function, ScalarFunction

public class ST_ShortestPathTree
extends GraphFunction
implements ScalarFunction

Calculates the shortest path(s) between vertices in a JGraphT graph produced from the input_edges table produced by ST_Graph.

Author:
Adam Gouge

Field Summary
static String REMARKS
           
 
Fields inherited from class org.h2gis.network.graph_creator.GraphFunction
ARG_ERROR
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_ShortestPathTree()
          Constructor
 
Method Summary
 String getJavaStaticMethod()
           
static ResultSet getShortestPathTree(Connection connection, String inputTable, String orientation, int source)
           
static ResultSet getShortestPathTree(Connection connection, String inputTable, String orientation, String weight, int source, double radius)
           
static ResultSet getShortestPathTree(Connection connection, String inputTable, String orientation, org.h2.value.Value arg4, org.h2.value.Value arg5)
           
 
Methods inherited from class org.h2gis.network.graph_creator.GraphFunction
logTime, prepareGraph
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Field Detail

REMARKS

public static final String REMARKS
See Also:
Constant Field Values
Constructor Detail

ST_ShortestPathTree

public ST_ShortestPathTree()
Constructor

Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()
Specified by:
getJavaStaticMethod in interface ScalarFunction

getShortestPathTree

public static ResultSet getShortestPathTree(Connection connection,
                                            String inputTable,
                                            String orientation,
                                            int source)
                                     throws SQLException
Parameters:
connection - connection
inputTable - Edges table produced by ST_Graph
orientation - Orientation string
source - Source vertex id
Returns:
Shortest path tree
Throws:
SQLException

getShortestPathTree

public static ResultSet getShortestPathTree(Connection connection,
                                            String inputTable,
                                            String orientation,
                                            org.h2.value.Value arg4,
                                            org.h2.value.Value arg5)
                                     throws SQLException
Parameters:
connection - connection
inputTable - Edges table produced by ST_Graph
orientation - Orientation string
arg4 - Source vertex id or Weight
arg5 - Search radius or Source vertex id
Returns:
Shortest path tree
Throws:
SQLException

getShortestPathTree

public static ResultSet getShortestPathTree(Connection connection,
                                            String inputTable,
                                            String orientation,
                                            String weight,
                                            int source,
                                            double radius)
                                     throws SQLException
Parameters:
connection - connection
inputTable - Edges table produced by ST_Graph
orientation - Orientation string
weight - Weight
source - Source vertex id
radius - Search radius
Returns:
Shortest path tree
Throws:
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.