org.h2gis.network.graph_creator
Class ST_GraphAnalysis

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_GraphAnalysis
All Implemented Interfaces:
Function, ScalarFunction

public class ST_GraphAnalysis
extends GraphFunction
implements ScalarFunction

Calculates closeness and betweenness centrality for nodes, as well as betweenness centrality for edges.

Author:
Adam Gouge

Field Summary
protected static int BATCH_SIZE
           
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_GraphAnalysis()
          Constructor
 
Method Summary
static boolean doGraphAnalysis(Connection connection, String inputTable, String orientation)
          Calculate centrality indices on the nodes and edges of a graph constructed from the input table.
static boolean doGraphAnalysis(Connection connection, String inputTable, String orientation, String weight)
          Calculate centrality indices on the nodes and edges of a graph constructed from the input table.
 String getJavaStaticMethod()
           
 
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

BATCH_SIZE

protected static final int BATCH_SIZE
See Also:
Constant Field Values

REMARKS

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

ST_GraphAnalysis

public ST_GraphAnalysis()
Constructor

Method Detail

getJavaStaticMethod

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

doGraphAnalysis

public static boolean doGraphAnalysis(Connection connection,
                                      String inputTable,
                                      String orientation)
                               throws SQLException,
                                      NoSuchMethodException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException
Calculate centrality indices on the nodes and edges of a graph constructed from the input table.

Parameters:
connection - Connection
inputTable - Input table
orientation - Global orientation
Returns:
True if the calculation was successful
Throws:
SQLException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException

doGraphAnalysis

public static boolean doGraphAnalysis(Connection connection,
                                      String inputTable,
                                      String orientation,
                                      String weight)
                               throws SQLException,
                                      InvocationTargetException,
                                      NoSuchMethodException,
                                      InstantiationException,
                                      IllegalAccessException
Calculate centrality indices on the nodes and edges of a graph constructed from the input table.

Parameters:
connection - Connection
inputTable - Input table
orientation - Global orientation
weight - Edge weight column name
Returns:
True if the calculation was successful
Throws:
SQLException
InvocationTargetException
NoSuchMethodException
InstantiationException
IllegalAccessException


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