es.unex.sextante.gui.core
Class GeoAlgorithmExecutors

java.lang.Object
  extended by es.unex.sextante.gui.core.GeoAlgorithmExecutors

public class GeoAlgorithmExecutors
extends java.lang.Object

This class contains convenience methods to call geoalgorithms from the SEXTANTE GUI

Author:
volaya

Constructor Summary
GeoAlgorithmExecutors()
           
 
Method Summary
static void execute(GeoAlgorithm alg, javax.swing.JDialog parent)
          Executes an algorithm in a new thread and then gets the results and puts them into the GUI using the current post process task.
static boolean executeForCommandLine(GeoAlgorithm alg, javax.swing.JDialog parent)
          Executes an algorithm in a new thread and then gets the results and puts them into the GUI using the current post process task.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoAlgorithmExecutors

public GeoAlgorithmExecutors()
Method Detail

execute

public static void execute(GeoAlgorithm alg,
                           javax.swing.JDialog parent)
Executes an algorithm in a new thread and then gets the results and puts them into the GUI using the current post process task. The algorithm must already have valid parameter values.

Parameters:
alg - the algorithm to execute

executeForCommandLine

public static boolean executeForCommandLine(GeoAlgorithm alg,
                                            javax.swing.JDialog parent)
                                     throws GeoAlgorithmExecutionException
Executes an algorithm in a new thread and then gets the results and puts them into the GUI using the current post process task. The algorithm must already have valid parameter values. Since this can be used to call several algorithms in a script, it does not perform the post-process task in a separate thread, but wait instead for its completion.

Parameters:
alg - the algorithm to execute
Returns:
true if execution went OK and other algorithms after this one should be executed
Throws:
GeoAlgorithmExecutionException