Package org.esa.snap.core.gpf.main
Class CommandLineTool
- java.lang.Object
-
- org.esa.snap.core.gpf.main.CommandLineTool
-
- All Implemented Interfaces:
GraphProcessingObserver
public class CommandLineTool extends Object implements GraphProcessingObserver
The common command-line tool for the GPF. For usage, see {@link org/esa/snap/core/gpf/main/CommandLineUsage.txt}.
-
-
Constructor Summary
Constructors Constructor Description CommandLineTool()Constructs a new tool.CommandLineTool(CommandLineContext commandLineContext)Constructs a new tool with the given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgraphProcessingStarted(GraphContext graphContext)It is invoked when the graph starts its processing.voidgraphProcessingStopped(GraphContext graphContext)It is invoked when the graph stops its processing.voidrun(String... args)voidtileProcessingStarted(GraphContext graphContext, Rectangle tileRectangle)It is invoked when the processing of the rectangle starts.voidtileProcessingStopped(GraphContext graphContext, Rectangle tileRectangle)It is invoked when the processing of the rectangle is done.
-
-
-
Constructor Detail
-
CommandLineTool
public CommandLineTool()
Constructs a new tool.
-
CommandLineTool
public CommandLineTool(CommandLineContext commandLineContext)
Constructs a new tool with the given context.- Parameters:
commandLineContext- The context used to run the tool.
-
-
Method Detail
-
graphProcessingStarted
public void graphProcessingStarted(GraphContext graphContext)
Description copied from interface:GraphProcessingObserverIt is invoked when the graph starts its processing.- Specified by:
graphProcessingStartedin interfaceGraphProcessingObserver- Parameters:
graphContext- the graph context being processed
-
graphProcessingStopped
public void graphProcessingStopped(GraphContext graphContext)
Description copied from interface:GraphProcessingObserverIt is invoked when the graph stops its processing.- Specified by:
graphProcessingStoppedin interfaceGraphProcessingObserver- Parameters:
graphContext- the graph context being processed
-
tileProcessingStarted
public void tileProcessingStarted(GraphContext graphContext, Rectangle tileRectangle)
Description copied from interface:GraphProcessingObserverIt is invoked when the processing of the rectangle starts.- Specified by:
tileProcessingStartedin interfaceGraphProcessingObserver- Parameters:
graphContext- the graph context being processedtileRectangle- the rectangle currently processed
-
tileProcessingStopped
public void tileProcessingStopped(GraphContext graphContext, Rectangle tileRectangle)
Description copied from interface:GraphProcessingObserverIt is invoked when the processing of the rectangle is done.- Specified by:
tileProcessingStoppedin interfaceGraphProcessingObserver- Parameters:
graphContext- the graph context being processedtileRectangle- the rectangle currently processed
-
-