org.geotools.process.impl
Class SimpleProcess

Object
  extended by AbstractProcess
      extended by 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  Map<String,Object> input
           
protected  Map<String,Object> result
           
 
Fields inherited from class AbstractProcess
factory
 
Constructor Summary
protected SimpleProcess(ProcessFactory factory)
           
 
Method Summary
 Map<String,Object> execute(Map<String,Object> input, ProgressListener monitor)
          Execute this process with the provided inputs.
protected  Object get(String key)
           
abstract  void process()
          Implement your own process here.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected Map<String,Object> input

result

protected Map<String,Object> result
Constructor Detail

SimpleProcess

protected SimpleProcess(ProcessFactory factory)
Method Detail

execute

public final Map<String,Object> execute(Map<String,Object> input,
                                        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 Exception
Implement your own process here.

Throws:
Exception

get

protected Object get(String key)


Copyright © 1996-2014 Geotools. All Rights Reserved.