public abstract class AbstractOperation extends java.lang.Object implements OperationServices
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPY_UNPROCESSED_BANDS_PARAM |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOperation(OperationFactory factory) |
Modifier and Type | Method and Description |
---|---|
Buffer |
execute(SimpleTaskStatus status,
Buffer buffer,
DynObject parameters) |
OperationFactory |
getFactory() |
Buffer |
getInputBuffer() |
Buffer |
getOutputBuffer() |
java.lang.Object |
getParameter(java.lang.String name,
java.lang.Object defaultValue) |
DynObject |
getParameters() |
SimpleTaskStatus |
getTaskStatus() |
protected boolean |
mustCopyUnprocessedBands() |
void |
postProcess()
Prepare the result
|
void |
preProcess()
Prepare the process
|
void |
process()
Process the operation
|
void |
setOutputBuffer(Buffer theOutputBuffer) |
void |
setParameter(java.lang.String name,
java.lang.Object value) |
public static java.lang.String COPY_UNPROCESSED_BANDS_PARAM
protected AbstractOperation(OperationFactory factory)
factory
- protected boolean mustCopyUnprocessedBands()
public void preProcess() throws BufferOperationException
OperationServices
preProcess
in interface OperationServices
BufferOperationException
public SimpleTaskStatus getTaskStatus()
getTaskStatus
in interface OperationServices
public void process() throws ProcessingOperationException
OperationServices
process
in interface OperationServices
ProcessingOperationException
public void postProcess() throws BufferOperationException
OperationServices
postProcess
in interface OperationServices
BufferOperationException
public Buffer execute(SimpleTaskStatus status, Buffer buffer, DynObject parameters) throws BufferOperationException
execute
in interface Operation
BufferOperationException
public OperationFactory getFactory()
getFactory
in interface Operation
public DynObject getParameters()
getParameters
in interface OperationServices
public java.lang.Object getParameter(java.lang.String name, java.lang.Object defaultValue)
getParameter
in interface OperationServices
public void setParameter(java.lang.String name, java.lang.Object value)
setParameter
in interface OperationServices
public Buffer getInputBuffer()
getInputBuffer
in interface OperationServices
public Buffer getOutputBuffer()
getOutputBuffer
in interface OperationServices
public void setOutputBuffer(Buffer theOutputBuffer)
setOutputBuffer
in interface OperationServices