|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.gpf.Operator
org.esa.beam.framework.gpf.pointop.PointOperator
public abstract class PointOperator
The PointOperator class serves as a base class for operators
GeoCoding.
| Constructor Summary | |
|---|---|
PointOperator()
|
|
| Method Summary | |
|---|---|
protected void |
checkRasterSize()
Checks if all source products share the same raster size, otherwise throws an exception. |
protected abstract void |
configureSourceSamples(SampleConfigurer sampleConfigurer)
Configures all source samples that this operator requires for the computation of target samples. |
protected void |
configureTargetProduct(ProductConfigurer productConfigurer)
Configures the target product via the given ProductConfigurer. |
protected abstract void |
configureTargetSamples(SampleConfigurer sampleConfigurer)
Configures all target samples computed by this operator. |
protected Product |
createTargetProduct()
Creates the target product instance. |
void |
initialize()
Configures this PointOperator by performing a number of initialisation steps in the given order:
prepareInputs()
createTargetProduct()
configureTargetProduct(ProductConfigurer)
configureSourceSamples(SampleConfigurer)
configureTargetSamples(SampleConfigurer)
This method cannot be overridden by intention (template method). |
protected void |
prepareInputs()
Prepares the inputs for this operator. |
| Methods inherited from class org.esa.beam.framework.gpf.Operator |
|---|
checkForCancelation, checkForCancellation, checkForCancellation, computeTile, computeTileStack, deactivateComputeTileMethod, dispose, finalize, getId, getLogger, getParameter, getSourceProduct, getSourceProduct, getSourceProductId, getSourceProducts, getSourceTile, getSourceTile, getSourceTile, getSourceTile, getSpi, getTargetProduct, getTargetProperty, setLogger, setParameter, setRequiresAllBands, setSourceProduct, setSourceProduct, setSourceProducts, setSpi, setTargetProduct, stopTileComputationObservation, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointOperator()
| Method Detail |
|---|
public final void initialize()
throws OperatorException
PointOperator by performing a number of initialisation steps in the given order:
prepareInputs()createTargetProduct()configureTargetProduct(ProductConfigurer)configureSourceSamples(SampleConfigurer)configureTargetSamples(SampleConfigurer)
initialize in class OperatorOperatorException - If the configuration cannot be performed.Operator.getTargetProduct()
protected void prepareInputs()
throws OperatorException
initialize().
Clients may override to perform some extra validation of
parameters and source products and/or to load external, auxiliary resources. External resources that may be opened
by this method and that must remain open during the Operator's lifetime shall be closed
by a dedicated override of the Operator.dispose() method.
Failures of input preparation shall be indicated by throwing an OperatorException.
The default implementation checks whether all source products have the same raster size.
Clients that require a similar behaviour in their operator shall first call the super method
in their implementation.
OperatorException - If the validation of input fails.
protected Product createTargetProduct()
throws OperatorException
initialize().
The default implementation creates a target product instance given the raster size of the (first) source product.
OperatorException - If the target product cannot be created.protected void configureTargetProduct(ProductConfigurer productConfigurer)
ProductConfigurer. Called by initialize().
Client implementations of this method usually add product components to the given target product, such as
bands to be computed by this operator,
virtual bands,
masks
or sample codings.
The default implementation retrieves the (first) source product and copies to the target product
ProductConfigurer.copyTimeCoding(),ProductConfigurer.copyTiePointGrids(String...),ProductConfigurer.copyGeoCoding().super method
in their implementation.
productConfigurer - The target product configurer.
OperatorException - If the target product cannot be configured.Product.addBand(org.esa.beam.framework.datamodel.Band),
Product.addBand(String, String),
Product.addTiePointGrid(org.esa.beam.framework.datamodel.TiePointGrid),
Product.getMaskGroup()
protected abstract void configureSourceSamples(SampleConfigurer sampleConfigurer)
throws OperatorException
SampleConfigurer.
The method is called by initialize().
sampleConfigurer - The configurer that defines the layout of a pixel.
OperatorException - If the source samples cannot be configured.
protected abstract void configureTargetSamples(SampleConfigurer sampleConfigurer)
throws OperatorException
SampleConfigurer.
The method is called by initialize().
sampleConfigurer - The configurer that defines the layout of a pixel.
OperatorException - If the target samples cannot be configured.
protected void checkRasterSize()
throws OperatorException
initialize().
OperatorException - If the source product's raster sizes are not equal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||