|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.processor.Processor
Graph Processing Framework instead.
@Deprecated public abstract class Processor
Base class for all scientific processors using the processor framework. Override this class to create new processors.
| Constructor Summary | |
|---|---|
protected |
Processor()
Deprecated. Constructs a new processor with default parameters. |
| Method Summary | |
|---|---|
boolean |
addProcessorStatusListener(ProcessorStatusListener listener)
Deprecated. Adds a ProcessorStatusListener to this processor runner. |
protected void |
addToBandNamesToCopy(String bandName)
Deprecated. Adds the band name to the internal list of band which shall be copied. |
protected void |
checkParamNotNull(Object param,
String description)
Deprecated. Checks that the given parameter is not null. |
protected void |
cleanupAfterFailure()
Deprecated. Called after an exception is caught during the processing to give the processor an opportuninty to perform "after-crash-cleanup" |
protected void |
copyBand(String bandName,
Product inputProduct,
Product outputProduct)
Deprecated. Copies the band with the given bandName from the inputProduct
to the outputProduct, if the band exists in the inputProduct. |
protected void |
copyBandData(String[] bandNames,
Product inputProduct,
Product outputProduct,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Copies the data for the bands with the given band names from input product to output product. |
protected void |
copyBandData(String bandName,
Product inputProduct,
Product outputProduct,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Copies the data for the band with the given band name from input product to output product. |
protected void |
copyFlagBandData(Product inputProduct,
Product outputProduct,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.6.2, use copyFlagBands(Product, Product) instead. |
protected void |
copyFlagBands(Product inputProduct,
Product outputProduct)
Deprecated. Copies all flag bands together with their flagcoding from the input product to the outout product. |
protected void |
copyGeoCoding(Product inputProduct,
Product outputProduct)
Deprecated. Copies the geo-coding from the input to the output product. |
protected void |
copyRequestMetaData(Product outputProduct)
Deprecated. |
ProcessorUI |
createUI()
Deprecated. Creates the UI for the processor. |
protected void |
fireStatusChanged(int oldStatus)
Deprecated. Dispatches a status changed message to all listeners attached. |
File |
getAuxdataInstallDir()
Deprecated. |
protected String[] |
getBandNamesToCopy()
Deprecated. Gets all band names which shall be copied to the output product. |
String |
getCompletionMessage()
Deprecated. Retrieve a message to be displayed on completion. |
abstract String |
getCopyrightInformation()
Deprecated. Retrieves copyright information of the processor |
int |
getCurrentStatus()
Deprecated. Returns the current state of this processor. |
File |
getDefaultAuxdataInstallDir()
Deprecated. |
String |
getDefaultHelpId()
Deprecated. |
String |
getDefaultHelpSetPath()
Deprecated. |
abstract String |
getName()
Deprecated. Retrieves the name of the processor |
JFrame |
getParentFrame()
Deprecated. Retrieves the parent frame containing the processor specific UI |
int |
getProgressDepth()
Deprecated. Gets the number of different progress levels during the processing. |
String |
getProgressMessage(Request request)
Deprecated. Gets a progress message for the request passed in. |
Request |
getRequest()
Deprecated. Retrieves the current request. |
RequestElementFactory |
getRequestElementFactory()
Deprecated. Retrieves the request element facory for this processor. |
String |
getResourceBundleName()
Deprecated. Gets the name of the resource bundle to be used for the application. |
String |
getSymbolicName()
Deprecated. Returns the symbolic name of the processor. |
String |
getUITitle()
Deprecated. Retrieves the title to be shown in the user interface. |
abstract String |
getVersion()
Deprecated. Retrieves a version string of the processor |
String[] |
getWarningMessages()
Deprecated. Retrieves the warning messages that occurred during processing (if any). |
void |
initProcessor()
Deprecated. Initializes the processor. |
void |
installAuxdata()
Deprecated. |
protected void |
installAuxdata(URL sourceLocation,
String sourceRelPath,
File auxdataInstallDir)
Deprecated. |
protected void |
installAuxdata(URL sourceLocation,
String relSourcePath,
URL targetLocation)
Deprecated. in 4.1, use installAuxdata(java.net.URL, String, java.io.File) instead |
boolean |
isAborted()
Deprecated. Retrieves whether the processor has the aborted flag set - or not. |
boolean |
isFailed()
Deprecated. Retrieves whether the processor has the failed flag set - or not. |
protected Product |
loadInputProduct(int index)
Deprecated. |
protected void |
logHeader()
Deprecated. Logs the processor specific logging file header information. |
protected void |
logRequest()
Deprecated. Logs the request currently used to the logging file. |
void |
printUsage()
Deprecated. Prints a general help message when no commandline is supplied |
void |
process()
Deprecated. in 4.0, override process(com.bc.ceres.core.ProgressMonitor) instead |
void |
process(com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Worker method. |
void |
processRequest(Request request)
Deprecated. in 4.0, use processRequest(Request, ProgressMonitor) |
void |
processRequest(Request request,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Template method. |
void |
removeProcessorStatusListener(ProcessorStatusListener listener)
Deprecated. Removes a ProcessorStatusListener from this product. |
protected void |
setAuxdataInstallDir(File auxdataInstallDir)
Deprecated. |
protected void |
setAuxdataInstallDir(String auxdataDirPropertyName,
File defaultAuxdataInstallDir)
Deprecated. |
void |
setCurrentStatus(int state)
Deprecated. Sets the current state of this processor. |
void |
setDefaultHelpId(String defaultHelpId)
Deprecated. |
void |
setDefaultHelpSetPath(String defaultHelpSetPath)
Deprecated. |
void |
setParentFrame(JFrame parent)
Deprecated. Sets the UI parent frame containing the processor specific UI. |
void |
setRequest(Request request)
Deprecated. Initializes the processor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Processor()
| Method Detail |
|---|
public final Request getRequest()
public final boolean isAborted()
public final boolean isFailed()
public int getCurrentStatus()
PSTATE_XXX constants defined in this class.public String[] getWarningMessages()
public void setRequest(Request request)
request - the request to be processed next
IllegalArgumentException - when called with null argumentpublic JFrame getParentFrame()
public String getUITitle()
public ProcessorUI createUI()
throws ProcessorException
ProcessorExceptionpublic String getResourceBundleName()
public String getDefaultHelpId()
public void setDefaultHelpId(String defaultHelpId)
public String getDefaultHelpSetPath()
public void setDefaultHelpSetPath(String defaultHelpSetPath)
public void initProcessor()
throws ProcessorException
ProcessorException
public void process()
throws ProcessorException
process(com.bc.ceres.core.ProgressMonitor) instead
ProcessorException
public void process(com.bc.ceres.core.ProgressMonitor pm)
throws ProcessorException
ProcessorExceptionpublic abstract String getName()
public String getSymbolicName()
public abstract String getVersion()
public abstract String getCopyrightInformation()
public void processRequest(Request request)
throws ProcessorException
processRequest(Request, ProgressMonitor)
ProcessorException
public void processRequest(Request request,
com.bc.ceres.core.ProgressMonitor pm)
throws ProcessorException
ProcessorExceptionpublic boolean addProcessorStatusListener(ProcessorStatusListener listener)
ProcessorStatusListener to this processor runner. The ProcessorStatusListener is
informed each time a processor in this processor runner fire an event.
listener - the listener to be added
public void removeProcessorStatusListener(ProcessorStatusListener listener)
ProcessorStatusListener from this product.
public void setParentFrame(JFrame parent)
public void printUsage()
public String getCompletionMessage()
public void setCurrentStatus(int state)
ProcessorStatusListener are informed about the change.
state - the new state, normally always one of the PSTATE_XXX constants defined in this class.public RequestElementFactory getRequestElementFactory()
public int getProgressDepth()
1 is returned.
public String getProgressMessage(Request request)
request -
protected void fireStatusChanged(int oldStatus)
oldStatus - the status before the status changeprotected void logHeader()
This method is called by the processor runner initially after a logging sink has been created.
The default implementation does nothing. Override this method to perform processor specific stuff.
protected void logRequest()
protected void checkParamNotNull(Object param,
String description)
throws ProcessorException
param - the parameter to be checkeddescription - a textual description of the parameter checked
ProcessorExceptionprotected void cleanupAfterFailure()
protected Product loadInputProduct(int index)
throws ProcessorException,
IOException
ProcessorException
IOExceptionprotected void copyRequestMetaData(Product outputProduct)
@Deprecated
protected final void copyFlagBandData(Product inputProduct,
Product outputProduct,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException,
ProcessorException
copyFlagBands(Product, Product) instead.
IOException
ProcessorException
protected final void copyBandData(String[] bandNames,
Product inputProduct,
Product outputProduct,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException,
ProcessorException
bandNames - the names for all the bands for which data will be copied.inputProduct - the product that contains the source bandsoutputProduct - the product that contains the destination bandspm - a monitor to inform the user about progress
IOException - if the data could not be copied because of an I/O error
ProcessorException - if the data could not be copied because any other reason
protected void copyBandData(String bandName,
Product inputProduct,
Product outputProduct,
com.bc.ceres.core.ProgressMonitor pm)
throws ProcessorException,
IOException
bandName - the name of the bands which data will be copied.inputProduct - the product that should contain the source band.outputProduct - the product that should contain the destination band.pm - a monitor to inform the user about progress
IOException
ProcessorExceptionprotected String[] getBandNamesToCopy()
addToBandNamesToCopy(String),
copyBand(String, Product, Product),
copyFlagBands(Product, Product)protected void addToBandNamesToCopy(String bandName)
bandName - The name of the band.getBandNamesToCopy(),
copyBand(String, Product, Product),
copyFlagBands(Product, Product)
protected void copyBand(String bandName,
Product inputProduct,
Product outputProduct)
bandName from the inputProduct
to the outputProduct, if the band exists in the inputProduct.
The band is added to the copy list by calling addToBandNamesToCopy(bandName).
bandName - The name of the band to be copied.inputProduct - The input product.outputProduct - The output product.copyBandData(String[], Product, Product, ProgressMonitor),
(String),
getBandNamesToCopy()
protected void copyGeoCoding(Product inputProduct,
Product outputProduct)
geo-coding from the input to the output product.
inputProduct - The input product.outputProduct - The output product.
protected void copyFlagBands(Product inputProduct,
Product outputProduct)
getBandNamesToCopy() and copying with
the copyBandData(String[], Product, Product, ProgressMonitor) method.
inputProduct - The input product.outputProduct - The output product.
protected void installAuxdata(URL sourceLocation,
String relSourcePath,
URL targetLocation)
installAuxdata(java.net.URL, String, java.io.File) instead
public void installAuxdata()
throws ProcessorException
ProcessorException
protected void installAuxdata(URL sourceLocation,
String sourceRelPath,
File auxdataInstallDir)
throws IOException
IOExceptionpublic File getDefaultAuxdataInstallDir()
public File getAuxdataInstallDir()
protected void setAuxdataInstallDir(File auxdataInstallDir)
protected void setAuxdataInstallDir(String auxdataDirPropertyName,
File defaultAuxdataInstallDir)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||