es.unex.sextante.gui.batch.nonFileBased
Class BatchProcessSingleUnit

java.lang.Object
  extended by es.unex.sextante.gui.batch.nonFileBased.BatchProcessSingleUnit
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Boolean>

public class BatchProcessSingleUnit
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Boolean>

A task representing a single algorithm execution as a part of a batch process. The process is comprised of several single units like the one represented by this class

Author:
volaya

Constructor Summary
BatchProcessSingleUnit(GeoAlgorithm alg, java.util.HashMap parameters, java.util.HashMap output, GridExtent gridExtent, ITaskMonitor monitor)
           
 
Method Summary
 java.lang.Boolean call()
          Executes the algorithm
 java.lang.String getLog()
          Returns a string with information about the executed process
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchProcessSingleUnit

public BatchProcessSingleUnit(GeoAlgorithm alg,
                              java.util.HashMap parameters,
                              java.util.HashMap output,
                              GridExtent gridExtent,
                              ITaskMonitor monitor)
Parameters:
alg - the algorithm to execute
parameters - a map with parameter values, to be used to fill the ParametersSet of the algorithm
output - a map with output settings, to be used to fill the OutputObjectsSet of the algorithm
gridExtent - the grid extent to use if the algorithm creates new raster layers
Method Detail

call

public java.lang.Boolean call()
                       throws GeoAlgorithmExecutionException
Executes the algorithm

Specified by:
call in interface java.util.concurrent.Callable<java.lang.Boolean>
Returns:
true if the algorithm was not canceled
Throws:
GeoAlgorithmExecutionException

getLog

public java.lang.String getLog()
Returns a string with information about the executed process

Returns:
a string with information about the executed process