|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Process
An operation applied to some given data to achieve whatever analyze or model transformation.
Process instances are created by ProcessDescriptor and can be executed in an
ExecutorService.
Event notifications
All Process implementations must notify all their ProcessListeners
when the call() method is starting and when it is terminating, either successfully or on
failure.
ExecutorService
| utility/geotk-utility (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
addListener(ProcessListener listener)
Adds a listener to the list of objects to inform about the process progress. |
ParameterValueGroup |
call()
Executes the process and returns the output in a new ParameterValueGroup. |
ProcessDescriptor |
getDescriptor()
Description of the process algorithm and its input/output parameters. |
ParameterValueGroup |
getInput()
Returns the input values given to the ProcessDescriptor.createProcess(ParameterValueGroup) method. |
ProcessListener[] |
getListeners()
Returns all registered listeners, or an empty array if none. |
void |
removeListener(ProcessListener listener)
Removes a listener from the list of objects to inform about the process progress. |
| Method Detail |
|---|
ProcessDescriptor getDescriptor()
Process instance.
ParameterValueGroup getInput()
ProcessDescriptor.createProcess(ParameterValueGroup) method.
The descriptor of those parameters is the instance returned by
getDescriptor().getInputDescriptor().
null).ProcessDescriptor.getInputDescriptor(),
ProcessStep.getSources()
ParameterValueGroup call()
throws ProcessException
ParameterValueGroup.
Some details about the work which has been performed (processing date, reports, etc.)
may be included as a ProcessStep instance associated to the
ProcessDescriptor.PROCESS_STEP parameter descriptor.
Note: Returning a parameter object may sound strange, since parameters are usually for input values rather than output values. Note however that ISO 19115 do the same, since theThe following relations shall hold:ProcessStepoutputs is a collection ofSourceobjects. In both cases, the outputs may be used as inputs in the next step of a process chain.
getDescriptor().getOutputDescriptor().ProcessEvent.getOutput() value shall
be the same than the return value of this call() method.
Event notifications
For any registered listeners, this method shall invoke the
following methods. Note that all notification events except progressing are
mandatory for all Process implementations.
started (mandatory) at the beginning of this call() method;progressing (optional) during the process execution;call() method is about to exit, exactly one of the following:
call in interface Callable<ParameterValueGroup>ProcessException - if the process failed.ProcessDescriptor.getOutputDescriptor(),
ProcessStep.getOutputs()void addListener(ProcessListener listener)
listener - The listener to add.void removeListener(ProcessListener listener)
listener - The listener to remove.ProcessListener[] getListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||