public class GraphProcessor extends Object
GraphProcessor is responsible for executing processing
graphs.| Constructor and Description |
|---|
GraphProcessor()
Creates a new instance og
GraphProcessor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(GraphProcessingObserver processingObserver)
Adds an observer to this graph popcessor.
|
Product[] |
executeGraph(GraphContext graphContext,
ProgressMonitor pm)
Executes the graph given by
GraphContext. |
void |
executeGraph(Graph graph,
ProgressMonitor pm)
Executes the graph using a new default
GraphContext. |
Logger |
getLogger()
Gets the logger.
|
GraphProcessingObserver[] |
getObservers()
Gets all observers currently attached to this
GraphProcessor. |
void |
setLogger(Logger logger)
Sets a logger.
|
public Logger getLogger()
public void setLogger(Logger logger)
logger - a loggerpublic void addObserver(GraphProcessingObserver processingObserver)
GraphProcessingObservers are informed about
processing steps of the currently running processing graph.processingObserver - the observerGraphProcessingObserverpublic GraphProcessingObserver[] getObservers()
GraphProcessor.public void executeGraph(Graph graph, ProgressMonitor pm) throws GraphException
GraphContext.graph - the Graphpm - a progress monitor. Can be used to signal progress.GraphException - if any error occurs during executionexecuteGraph(GraphContext, com.bc.ceres.core.ProgressMonitor)public Product[] executeGraph(GraphContext graphContext, ProgressMonitor pm)
GraphContext.graphContext - the GraphContext to executepm - a progress monitor. Can be used to signal progress.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.