|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--hep.lcd.util.driver.AbstractProcessor
A base implementation of Processor. Normally Processors will extend this class. It contains a bunch of convenience routines for accessing useful info from the ProcessorContext.
| Field Summary | |
protected ProcessorContext |
context
|
| Constructor Summary | |
AbstractProcessor()
|
|
| Method Summary | |
void |
clearContext()
Called by the Driver to clear the context |
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 |
String |
getName()
A default implementation of Processor.getName() Returns the name of this class. |
Reader |
getParameterFile(String name)
|
PropertySet |
getParameters()
Get the parameters for this processor from the constants system |
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)
|
protected void |
init()
Called once the ProcessorContext has been set by the Driver. |
void |
setContext(ProcessorContext context)
Called by the Driver to set the context |
void |
setDetector(Detector det)
A default implementation of Processor.setDetector(). |
void |
start()
A default implementation of Processor.start(). |
void |
stop()
A default implementation of Processor.stop(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hep.lcd.util.driver.Processor |
process |
| Field Detail |
protected ProcessorContext context
| Constructor Detail |
public AbstractProcessor()
| Method Detail |
protected void init()
public void start()
start in interface Processorpublic void stop()
stop in interface Processorpublic void setDetector(Detector det)
setDetector in interface Processorpublic void setContext(ProcessorContext context)
setContext in interface Processorhep.lcd.util.driver.Processorcontext - the new ProcessorContextpublic void clearContext()
clearContext in interface Processorpublic String getName()
getName in interface Processorhep.lcd.util.driver.Processorpublic PrintWriter getDebugStream()
public int getDebugLevel()
public int getHistogramLevel()
public Histogram histogram(String name)
public Random getRandom()
public PropertySet getParameters()
public PropertySet getParameters(String name)
name - The name of the parameters to getpublic Reader getParameterFile(String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||