public abstract class ProcessParamsManagement extends ProcessUtils implements IIncrementable, IncrementableListener, java.lang.Runnable, Disposable
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
inputParameters |
static java.lang.String |
OUTPUT_HEIGHT
Input parameter: Force to this height in pixels in the output buffer
|
static java.lang.String |
OUTPUT_WIDTH
Input parameter: Force to this width in pixels in the output buffer
|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
outputParameters |
static java.lang.String |
PREVIEW
Input parameter: The output of this algorithm is for previews.
|
static java.lang.String |
PROCESS
Output parameter: The getResult sets the correct value in the output.
|
static java.lang.String |
PROCESS_NAME
Output parameter: The getResult sets the correct value in the output.
|
static java.lang.String |
REGISTER_INPUT_PARAMETERS_LABEL |
static java.lang.String |
REGISTER_OUTPUT_PARAMETERS_LABEL |
static java.lang.String |
ROI_EPSG
Input parameter: If is defined then the ROIs will be used
|
static java.lang.String |
TIME
Output parameter: The getResult sets the correct value in the output.
|
static java.lang.String |
WINDOW
Input parameter: Force to this bounding box.
|
doubleNODATA
Constructor and Description |
---|
ProcessParamsManagement() |
Modifier and Type | Method and Description |
---|---|
void |
addParam(java.lang.String key,
java.lang.Object param)
Add a parameter to this task at runtime.
|
protected void |
finalize() |
boolean |
getBooleanParam(java.lang.String name)
Gets a
Boolean parameter from its key |
byte |
getByteParam(java.lang.String name)
Gets a
Byte parameter from its key |
double[] |
getDoubleArrayParam(java.lang.String name)
Gets a
double[] parameter from its key |
double |
getDoubleParam(java.lang.String name)
Gets a
double parameter from its key |
Extent |
getExtentParam(java.lang.String name)
Gets a
Extent parameter from its key |
float |
getFloatParam(java.lang.String name)
Gets a
Float parameter from its key |
int[] |
getIntArrayParam(java.lang.String name)
Gets a
int[] parameter from its key |
int |
getIntParam(java.lang.String name)
Gets a
int parameter from its key |
protected int |
getOutputHeight()
Gets the height in pixels of the output
|
protected int |
getOutputWidth()
Gets the width in pixels of the output
|
protected Extent |
getOutputWindow()
Gets the bounding box defined by the user to the process
|
java.lang.Object |
getParam(java.lang.String key)
Gets a parameter from its key
|
java.util.List<java.lang.Class<?>> |
getParameterClassList(java.lang.String processLabel,
java.lang.String parameterName)
Gets a list with the class of all parameters.
|
java.lang.Class<?> |
getParameterTypeByProcess(java.lang.String processLabel,
java.lang.String parameterName)
Gets the class of a parameter in a process.
|
java.util.List<java.lang.String> |
getRasterTaskInputParameters(java.lang.String processLabel)
Gets the key list of the input parameters
|
java.util.List<java.lang.String> |
getRasterTaskOutputParameters(java.lang.String processLabel)
Gets the key list of the output parameters
|
protected java.lang.String |
getROIEPSG()
Gets the default EPSG for the regions of interest.
|
java.lang.String |
getStringParam(java.lang.String key)
Gets a
String parameter from its key |
protected boolean |
isForPreviews()
Returns true if the output of this algorithm is for previews.
|
protected boolean |
isOutputRescaled()
Returns true if the output will be rescaled
|
protected void |
loadGlobalParameters()
Loads global parameters defined in this class
|
static void |
registerGlobalInputParameters(java.lang.String parameterLabel,
java.lang.Class<?> parameterClass,
java.lang.String processLabel) |
static void |
registerGlobalOutputParameters(java.lang.String parameterLabel,
java.lang.Class<?> parameterClass,
java.lang.String processLabel) |
static void |
registerInputParameter(java.lang.String parameterLabel,
java.lang.Class<?> parameterClass,
java.lang.String processLabel)
Registers input parameters of a raster process
|
static void |
registerOutputParameter(java.lang.String parameterLabel,
java.lang.Class<?> parameterClass,
java.lang.String processLabel)
Registers output parameters of a raster process
|
void |
removeParam(java.lang.String key)
Remove a parameter to this task at runtime.
|
createOutputBuffer, createOutputBuffer, createSourceBuffer, debug, exportRaster, exportRaster, exportRaster, exportRaster, exportRaster, exportRaster, exportRaster, getData, getExtentResult, getIntersectionInPxCoords, getSourcePxBox, isAnalizedEntireLayer, isInsideOfROI, messageBoxError, messageBoxError, messageBoxError
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel, getLog, getPercent, getTitle, isCancelable, isPausable
actionCanceled, actionResumed, actionSuspended
dispose
public static java.lang.String ROI_EPSG
public static java.lang.String WINDOW
public static java.lang.String OUTPUT_WIDTH
public static java.lang.String OUTPUT_HEIGHT
public static java.lang.String PREVIEW
public static java.lang.String TIME
public static java.lang.String PROCESS
public static java.lang.String PROCESS_NAME
public static final java.lang.String REGISTER_INPUT_PARAMETERS_LABEL
public static final java.lang.String REGISTER_OUTPUT_PARAMETERS_LABEL
protected java.util.Hashtable<java.lang.String,java.lang.Object> inputParameters
protected java.util.HashMap<java.lang.String,java.lang.Object> outputParameters
public static void registerInputParameter(java.lang.String parameterLabel, java.lang.Class<?> parameterClass, java.lang.String processLabel)
public static void registerOutputParameter(java.lang.String parameterLabel, java.lang.Class<?> parameterClass, java.lang.String processLabel)
public static void registerGlobalInputParameters(java.lang.String parameterLabel, java.lang.Class<?> parameterClass, java.lang.String processLabel)
public static void registerGlobalOutputParameters(java.lang.String parameterLabel, java.lang.Class<?> parameterClass, java.lang.String processLabel)
public java.util.List<java.lang.String> getRasterTaskInputParameters(java.lang.String processLabel)
processLabel
- public java.util.List<java.lang.String> getRasterTaskOutputParameters(java.lang.String processLabel)
processLabel
- public java.lang.Class<?> getParameterTypeByProcess(java.lang.String processLabel, java.lang.String parameterName)
processLabel
- parameterName
- public java.util.List<java.lang.Class<?>> getParameterClassList(java.lang.String processLabel, java.lang.String parameterName)
processLabel
- parameterName
- protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void addParam(java.lang.String key, java.lang.Object param)
name
- keyparam
- object to this taskpublic void removeParam(java.lang.String key)
name
- keypublic java.lang.Object getParam(java.lang.String key)
name
- keypublic java.lang.String getStringParam(java.lang.String key)
String
parameter from its keykey
- public byte getByteParam(java.lang.String name)
Byte
parameter from its keykey
- public float getFloatParam(java.lang.String name)
Float
parameter from its keykey
- public double getDoubleParam(java.lang.String name)
double
parameter from its keykey
- public int getIntParam(java.lang.String name)
int
parameter from its keykey
- public boolean getBooleanParam(java.lang.String name)
Boolean
parameter from its keykey
- public int[] getIntArrayParam(java.lang.String name)
int[]
parameter from its keykey
- public double[] getDoubleArrayParam(java.lang.String name)
double[]
parameter from its keykey
- public Extent getExtentParam(java.lang.String name)
Extent
parameter from its keykey
- protected java.lang.String getROIEPSG()
protected Extent getOutputWindow()
protected int getOutputWidth()
protected int getOutputHeight()
protected boolean isOutputRescaled()
protected boolean isForPreviews()
protected void loadGlobalParameters()