edu.cmu.sphinx.frontend
Class BaseDataProcessor

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
All Implemented Interfaces:
DataProcessor, Configurable
Direct Known Subclasses:
AbstractFeatureExtractor, AudioContinuityTester, AudioFileDataSource, BatchAGC, BatchCMN, DataBlocker, DataBufferProcessor, DataConverter, DataDumper, DiscreteCosineTransform, DiscreteFourierTransform, Dither, Dither, ExcessiveNonSpeechPruner, FrameDropper, FrontEnd, FrontEndSplitter, GainControlProcessor, LDA, LiveCMN, MelFrequencyFilterBank, Microphone, NonSpeechDataFilter, PLPCepstrumProducer, PLPFrequencyFilterBank, Preemphasizer, RaisedCosineWindower, SpeechClassifier, SpeechMarker, StreamCepstrumSource, StreamDataSource, StreamHTKCepstrum, VUMeterMonitor, WavWriter

public abstract class BaseDataProcessor
extends ConfigurableAdapter
implements DataProcessor

An abstract DataProcessor implementing elements common to all concrete DataProcessors, such as name, predecessor, and timer.


Constructor Summary
BaseDataProcessor()
           
 
Method Summary
abstract  Data getData()
          Returns the processed Data output.
 DataProcessor getPredecessor()
          Returns the predecessor DataProcessor.
 Timer getTimer()
          Returns the timer this DataProcessor uses.
 void initialize()
          Initializes this DataProcessor.
 void setPredecessor(DataProcessor predecessor)
          Sets the predecessor DataProcessor.
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, newProperties, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.sphinx.util.props.Configurable
newProperties
 

Constructor Detail

BaseDataProcessor

public BaseDataProcessor()
Method Detail

getData

public abstract Data getData()
                      throws DataProcessingException
Returns the processed Data output.

Specified by:
getData in interface DataProcessor
Returns:
an Data object that has been processed by this DataProcessor
Throws:
DataProcessingException - if a data processor error occurs

initialize

public void initialize()
Initializes this DataProcessor. This is typically called after the DataProcessor has been configured.

Specified by:
initialize in interface DataProcessor

getPredecessor

public DataProcessor getPredecessor()
Returns the predecessor DataProcessor.

Specified by:
getPredecessor in interface DataProcessor
Returns:
the predecessor

getTimer

public Timer getTimer()
Returns the timer this DataProcessor uses.

Returns:
the timer

setPredecessor

public void setPredecessor(DataProcessor predecessor)
Sets the predecessor DataProcessor. This method allows dynamic reconfiguration of the front end.

Specified by:
setPredecessor in interface DataProcessor
Parameters:
predecessor - the new predecessor of this DataProcessor