org.geotools.process.impl
Class SimpleProcess

java.lang.Object
  extended by org.geotools.process.impl.AbstractProcess
      extended by org.geotools.process.impl.SimpleProcess
All Implemented Interfaces:
Process

public abstract class SimpleProcess
extends AbstractProcess

Provide an implementation for a simple process (ie so quick and easy it is not going to need to report progress as it goes).

Author:
gdavis

Field Summary
protected  java.util.Map<java.lang.String,java.lang.Object> input
           
protected  java.util.Map<java.lang.String,java.lang.Object> result
           
 
Fields inherited from class org.geotools.process.impl.AbstractProcess
factory
 
Constructor Summary
protected SimpleProcess(ProcessFactory factory)
           
 
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.
protected  java.lang.Object get(java.lang.String key)
           
abstract  void process()
          Implement your own process here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected java.util.Map<java.lang.String,java.lang.Object> input

result

protected java.util.Map<java.lang.String,java.lang.Object> result
Constructor Detail

SimpleProcess

protected SimpleProcess(ProcessFactory factory)
Method Detail

execute

public final 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)
Description copied from interface: Process
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

process

public abstract void process()
                      throws java.lang.Exception
Implement your own process here.

Throws:
java.lang.Exception

get

protected java.lang.Object get(java.lang.String key)


Copyright © 1996-2010 Geotools. All Rights Reserved.