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 propcessor.
|
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 currentyl 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)
GraphProcessingObserver
s are informed about
processing steps of the currently running processing graph.processingObserver
- the observerGraphProcessingObserver
public GraphProcessingObserver[] getObservers()
GraphProcessor
.public void executeGraph(Graph graph, ProgressMonitor pm) throws GraphException
GraphContext
.graph
- the Graph
pm
- 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–2015 European Space Agency (ESA). All rights reserved.