es.unex.sextante.outputs
Class OutputRasterLayer

java.lang.Object
  extended by es.unex.sextante.outputs.Output
      extended by es.unex.sextante.outputs.OutputRasterLayer

public class OutputRasterLayer
extends Output

An output representing a raster layer

Author:
volaya

Field Summary
static int NUMBER_OF_BANDS_UNDEFINED
           
 
Constructor Summary
OutputRasterLayer()
           
 
Method Summary
 java.lang.String getCommandLineParameter()
          Returns the output as a command-line parameter
 Output getNewInstance()
           
 int getNumberOfBands()
          Returns the number of bands that this output raster layer will have
 java.lang.String getTypeDescription()
          returns a human-readable description of the type of output
 void setNumberOfBands(int numberOfBands)
          Set the number of bands of this output raster layer.
 void setObjectData(Output output)
          Sets the data objects (output channel, name, output object, etc) of this objects from another Output object
 void setOutputObject(java.lang.Object obj)
          Sets a new value for the output object
 
Methods inherited from class es.unex.sextante.outputs.Output
getDescription, getName, getOutputChannel, getOutputObject, setDescription, setName, setOutputChannel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER_OF_BANDS_UNDEFINED

public static final int NUMBER_OF_BANDS_UNDEFINED
See Also:
Constant Field Values
Constructor Detail

OutputRasterLayer

public OutputRasterLayer()
Method Detail

setOutputObject

public void setOutputObject(java.lang.Object obj)
Description copied from class: Output
Sets a new value for the output object

Specified by:
setOutputObject in class Output
Parameters:
obj - the new value for the output object

getCommandLineParameter

public java.lang.String getCommandLineParameter()
Description copied from class: Output
Returns the output as a command-line parameter

Specified by:
getCommandLineParameter in class Output
Returns:
the output as a string, to save it as a command-line parameter

getNumberOfBands

public int getNumberOfBands()
Returns the number of bands that this output raster layer will have

Returns:
the number of layers of the output raster layer

setNumberOfBands

public void setNumberOfBands(int numberOfBands)
Set the number of bands of this output raster layer. If the number is lower that one, the number of bands is set to undefined.

Parameters:
numberOfBands - the number of bands this output raster layer will have

getNewInstance

public Output getNewInstance()
Overrides:
getNewInstance in class Output
Returns:
a new instance of the output object

setObjectData

public void setObjectData(Output output)
Description copied from class: Output
Sets the data objects (output channel, name, output object, etc) of this objects from another Output object

Overrides:
setObjectData in class Output
Parameters:
output - the Output object to take data from

getTypeDescription

public java.lang.String getTypeDescription()
Description copied from class: Output
returns a human-readable description of the type of output

Specified by:
getTypeDescription in class Output
Returns:
a human-readable description of the type of output