edu.duke.cs.banjo.learner.components
Class Recorder

java.lang.Object
  extended byedu.duke.cs.banjo.learner.components.Recorder
All Implemented Interfaces:
RecorderI
Direct Known Subclasses:
RecorderStandard

public abstract class Recorder
extends java.lang.Object
implements RecorderI

Combines the common code shared by the different statistics implementations.

Details:

Change History:
Created May 10, 2004

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Field Summary
protected  java.util.Collection outputFileFlags
           
protected  java.util.Collection outputResultsOnly
           
protected  java.util.Collection outputSummaryOnly
           
protected  java.util.Collection outputToAllFiles
           
protected  java.util.Collection outputTraceOnly
           
protected  Settings processData
           
protected  java.lang.StringBuffer resultBuffer
           
protected  java.lang.StringBuffer statisticsBuffer
           
private static java.lang.String strHeader
           
protected  java.lang.StringBuffer summaryBuffer
           
protected  java.text.DateFormat timeFormat
           
protected  java.lang.StringBuffer traceBuffer
           
 
Constructor Summary
Recorder(Settings _processData)
           
 
Method Summary
protected  java.lang.StringBuffer collectFeedback()
           
protected  void commitData(java.util.Collection _outputFileFlags, java.lang.StringBuffer _textToCommit)
           
 void recordFinalData(SearcherI searcher)
           
 void recordInitialData(SearcherI searcher)
           
abstract  void recordRecurringData(SearcherI searcher)
           
abstract  void recordSpecifiedData(java.lang.StringBuffer dataToRecord)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statisticsBuffer

protected volatile java.lang.StringBuffer statisticsBuffer

resultBuffer

protected volatile java.lang.StringBuffer resultBuffer

summaryBuffer

protected volatile java.lang.StringBuffer summaryBuffer

traceBuffer

protected volatile java.lang.StringBuffer traceBuffer

outputFileFlags

protected java.util.Collection outputFileFlags

outputResultsOnly

protected java.util.Collection outputResultsOnly

outputTraceOnly

protected java.util.Collection outputTraceOnly

outputSummaryOnly

protected java.util.Collection outputSummaryOnly

outputToAllFiles

protected java.util.Collection outputToAllFiles

processData

protected final Settings processData

timeFormat

protected java.text.DateFormat timeFormat

strHeader

private static final java.lang.String strHeader
Constructor Detail

Recorder

public Recorder(Settings _processData)
         throws java.lang.Exception
Method Detail

commitData

protected void commitData(java.util.Collection _outputFileFlags,
                          java.lang.StringBuffer _textToCommit)
                   throws java.lang.Exception
Throws:
java.lang.Exception

recordInitialData

public void recordInitialData(SearcherI searcher)
                       throws java.lang.Exception
Specified by:
recordInitialData in interface RecorderI
Throws:
java.lang.Exception

collectFeedback

protected java.lang.StringBuffer collectFeedback()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

recordFinalData

public void recordFinalData(SearcherI searcher)
                     throws java.lang.Exception
Specified by:
recordFinalData in interface RecorderI
Throws:
java.lang.Exception

recordRecurringData

public abstract void recordRecurringData(SearcherI searcher)
                                  throws java.lang.Exception
Specified by:
recordRecurringData in interface RecorderI
Throws:
java.lang.Exception

recordSpecifiedData

public abstract void recordSpecifiedData(java.lang.StringBuffer dataToRecord)
                                  throws java.lang.Exception
Specified by:
recordSpecifiedData in interface RecorderI
Throws:
java.lang.Exception