hep.lcd.util.driver
Interface ProcessorContext


public interface ProcessorContext

The context in which a processor runs. The processor should check this to discover what level of DEBUG output and histograms to produce, as well as where to write output, and what Random number generator to use. AbstractProcessor wraps this in some convenience routines to make access a little easier.

See Also:
Processor, AbstractProcessor
Source Code:
ProcessorContext.java

Field Summary
static int LEVEL_HIGH
          High level of output or histograms should be produced
static int LEVEL_LOW
          Low level of output or histograms should be produced
static int LEVEL_MEDIUM
          Medium level of output or histograms should be produced
static int LEVEL_NONE
          No output or histogram should be produced
 
Method Summary
 int getDebugLevel()
          Get the level of debug output requested
 PrintWriter getDebugStream()
          Get the stream to which debug output should be written
 int getHistogramLevel()
          Get the level of histogram output requested
 Reader getParameterFile(String name)
           
 PropertySet getParameters(String name)
          Get the named parameters from the constants system
 Random getRandom()
          Get the random number generator to be used
 Histogram histogram(String name)
          Used for filling named histograms
 

Field Detail

LEVEL_NONE

public static final int LEVEL_NONE
No output or histogram should be produced

LEVEL_LOW

public static final int LEVEL_LOW
Low level of output or histograms should be produced

LEVEL_MEDIUM

public static final int LEVEL_MEDIUM
Medium level of output or histograms should be produced

LEVEL_HIGH

public static final int LEVEL_HIGH
High level of output or histograms should be produced
Method Detail

getDebugStream

public PrintWriter getDebugStream()
Get the stream to which debug output should be written

getDebugLevel

public int getDebugLevel()
Get the level of debug output requested

getHistogramLevel

public int getHistogramLevel()
Get the level of histogram output requested

histogram

public Histogram histogram(String name)
Used for filling named histograms

getRandom

public Random getRandom()
Get the random number generator to be used

getParameters

public PropertySet getParameters(String name)
Get the named parameters from the constants system
Parameters:
The - name of the parameters to get

getParameterFile

public Reader getParameterFile(String name)


The LCD Group