org.esa.beam.framework.gpf.graph
Class GraphProcessor

java.lang.Object
  extended by org.esa.beam.framework.gpf.graph.GraphProcessor

public class GraphProcessor
extends Object

The GraphProcessor is responsible for executing processing graphs.

Since:
4.1
Author:
Maximilian Aulinger, Norman Fomferra, Marco Peters, Marco Zuehlke

Constructor Summary
GraphProcessor()
          Creates a new instance og GraphProcessor.
 
Method Summary
 void addObserver(GraphProcessingObserver processingObserver)
          Adds an observer to this graph propcessor.
 Product[] executeGraph(GraphContext graphContext, com.bc.ceres.core.ProgressMonitor pm)
          Executes the graph given by GraphContext.
 void executeGraph(Graph graph, com.bc.ceres.core.ProgressMonitor pm)
          Executes the graph given by GraphContext.
 void executeGraphContext(GraphContext graphContext, com.bc.ceres.core.ProgressMonitor pm)
          Deprecated. since BEAM 4.9, use executeGraph(GraphContext, com.bc.ceres.core.ProgressMonitor) instead
 Logger getLogger()
          Gets the logger.
 GraphProcessingObserver[] getObservers()
          Gets all observers currentyl attached to this GraphProcessor.
 void setLogger(Logger logger)
          Sets a logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphProcessor

public GraphProcessor()
Creates a new instance og GraphProcessor.

Method Detail

getLogger

public Logger getLogger()
Gets the logger.

Returns:
the logger

setLogger

public void setLogger(Logger logger)
Sets a logger.

Parameters:
logger - a logger

addObserver

public void addObserver(GraphProcessingObserver processingObserver)
Adds an observer to this graph propcessor. GraphProcessingObservers are informed about processing steps of the currently running processing graph.

Parameters:
processingObserver - the observer
See Also:
GraphProcessingObserver

getObservers

public GraphProcessingObserver[] getObservers()
Gets all observers currentyl attached to this GraphProcessor.

Returns:
the observers

executeGraph

public void executeGraph(Graph graph,
                         com.bc.ceres.core.ProgressMonitor pm)
                  throws GraphException
Executes the graph given by GraphContext. New graph context are created using the GraphContext#create(Graph) method.

Parameters:
graph - the Graph
pm - a progress monitor. Can be used to signal progress.
Throws:
GraphException - if any error occurs during execution

executeGraph

public Product[] executeGraph(GraphContext graphContext,
                              com.bc.ceres.core.ProgressMonitor pm)
Executes the graph given by GraphContext. New graph context are created using the GraphContext#create(Graph) method.

Parameters:
graphContext - the GraphContext to execute
pm - a progress monitor. Can be used to signal progress.
Returns:
the output products of the executed graph

executeGraphContext

@Deprecated
public void executeGraphContext(GraphContext graphContext,
                                           com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.9, use executeGraph(GraphContext, com.bc.ceres.core.ProgressMonitor) instead

Executes the given GraphContext.

Parameters:
graphContext - the GraphContext to execute
pm - a progress monitor. Can be used to signal progress.


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.