Package org.esa.snap.core.gpf.graph
Class GraphProcessor
java.lang.Object
org.esa.snap.core.gpf.graph.GraphProcessor
The
GraphProcessor is responsible for executing processing
graphs.- Since:
- 4.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserver(GraphProcessingObserver processingObserver) Adds an observer to this graph popcessor.Product[]executeGraph(GraphContext graphContext, ProgressMonitor pm) Executes the graph given byGraphContext.voidexecuteGraph(Graph graph, ProgressMonitor pm) Executes the graph using a new defaultGraphContext.Gets the logger.Gets all observers currently attached to thisGraphProcessor.voidSets a logger.
-
Constructor Details
-
GraphProcessor
public GraphProcessor()Creates a new instance ogGraphProcessor.
-
-
Method Details
-
getLogger
Gets the logger.- Returns:
- the logger
-
setLogger
Sets a logger.- Parameters:
logger- a logger
-
addObserver
Adds an observer to this graph popcessor.GraphProcessingObservers are informed about processing steps of the currently running processing graph.- Parameters:
processingObserver- the observer- See Also:
-
getObservers
Gets all observers currently attached to thisGraphProcessor.- Returns:
- the observers
-
executeGraph
Executes the graph using a new defaultGraphContext.- Parameters:
graph- theGraphpm- a progress monitor. Can be used to signal progress.- Throws:
GraphException- if any error occurs during execution- See Also:
-
executeGraph
Executes the graph given byGraphContext.- Parameters:
graphContext- theGraphContextto executepm- a progress monitor. Can be used to signal progress.- Returns:
- the output products of the executed graph
-