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 Details

    • ToolAdapterOp

      public ToolAdapterOp()
      Constructor.
  • Method Details

    • setConsumer

      public void setConsumer(ProcessOutputConsumer consumer)
      Registers a consumer for the tool's output.
      Parameters:
      consumer - the output consumer.
    • setProgressMonitor

      public void setProgressMonitor(ProgressMonitor monitor)
    • stop

      public void stop()
      Command to isStopped the tool.

      This method is synchronized.

    • setAdapterFolder

      public void setAdapterFolder(File folder)
    • getErrors

      public List<String> 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

      public void initialize() throws OperatorException
      Initialise and run the defined tool.

      This method will block until the tool finishes its execution.

      Specified by:
      initialize in class Operator
      Throws:
      OperatorException
      See Also:
    • getExecutionOutput

      public List<String> getExecutionOutput()
    • getResult

      public Product getResult()