Class ToolAdapterOp
java.lang.Object
org.esa.snap.core.gpf.Operator
org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterOp
@OperatorMetadata(alias="ToolAdapterOp",
category="Tools",
version="1.0",
description="Tool Adapter Operator")
public class ToolAdapterOp
extends Operator
Tool Adapter operator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of errors that have been produced during external tool executionvoidInitialise and run the defined tool.voidsetAdapterFolder(File folder) voidsetConsumer(ProcessOutputConsumer consumer) Registers a consumer for the tool's output.voidsetProgressMonitor(ProgressMonitor monitor) voidstop()Command to isStopped the tool.Methods inherited from class org.esa.snap.core.gpf.Operator
canComputeTile, canComputeTileStack, checkForCancellation, computeTile, computeTileStack, dispose, doExecute, ensureSceneGeoCoding, ensureSingleRasterSize, ensureSingleRasterSize, execute, finalize, getId, getLogger, getParameter, getParameter, getProductManager, getSourceProduct, getSourceProduct, getSourceProductId, getSourceProducts, getSourceTile, getSourceTile, getSpi, getTargetProduct, getTargetProperty, setLogger, setParameter, setParameterDefaultValues, setRequiresAllBands, setSourceProduct, setSourceProduct, setSourceProducts, setSpi, setTargetProduct, stopTileComputationObservation, update
-
Constructor Details
-
ToolAdapterOp
public ToolAdapterOp()Constructor.
-
-
Method Details
-
setConsumer
Registers a consumer for the tool's output.- Parameters:
consumer- the output consumer.
-
setProgressMonitor
-
stop
public void stop()Command to isStopped the tool.This method is synchronized.
-
setAdapterFolder
-
getErrors
Gets the list of errors that have been produced during external tool execution- Returns:
- A list of error messages. The list is empty if no error has occured.
-
initialize
Initialise and run the defined tool.This method will block until the tool finishes its execution.
- Specified by:
initializein classOperator- Throws:
OperatorException- See Also:
-
getExecutionOutput
-
getResult
-