es.unex.sextante.gui.batch.nonFileBased
Class BatchProcessSingleUnit
java.lang.Object
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
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 |
BatchProcessSingleUnit
public BatchProcessSingleUnit(GeoAlgorithm alg,
java.util.HashMap parameters,
java.util.HashMap output,
GridExtent gridExtent,
ITaskMonitor monitor)
- Parameters:
alg
- the algorithm to executeparameters
- a map with parameter values, to be used to fill
the ParametersSet of the algorithmoutput
- a map with output settings, to be used to
fill the OutputObjectsSet of the algorithmgridExtent
- the grid extent to use if the algorithm creates
new raster layers
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