org.geotools.process
Interface Process

All Known Implementing Classes:
AbstractFeatureCollectionProcess, AbstractProcess, BufferFeatureCollectionProcess, FeatureBufferProcess, FeatureToFeatureProcess, RasterToVectorProcess, SimpleProcess, VectorToRasterProcess, WPSProcess

public interface Process

A Process that returns a result and reports progress. Implementors define a single method called execute that accepts the inputs to process and a ProgressListener.

The Process interface is similar to java.lang.Callable, in that both are designed for classes whose instances are potentially executed by another thread. A Callable, however, does not report progress.

The Executors class contains utility methods to convert from other common forms to Callable classes.

Author:
gdavis
See Also:
/** Used to process inputs and is reported using a ProgressListener. Results are available after being run.

Method Summary
 java.util.Map<java.lang.String,java.lang.Object> execute(java.util.Map<java.lang.String,java.lang.Object> input, org.opengis.util.ProgressListener monitor)
          Execute this process with the provided inputs.
 

Method Detail

execute

java.util.Map<java.lang.String,java.lang.Object> execute(java.util.Map<java.lang.String,java.lang.Object> input,
                                                         org.opengis.util.ProgressListener monitor)
                                                         throws ProcessException
Execute this process with the provided inputs.

Parameters:
input - Input parameters for this process
monitor - listener for handling the progress of the process
Returns:
Map of results, (@see ProcessFactory for details), or null if canceled
Throws:
ProcessException


Copyright © 1996-2010 Geotools. All Rights Reserved.