inpro.sphinx.frontend
Class DataThrottle

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by inpro.sphinx.frontend.DataThrottle
All Implemented Interfaces:
edu.cmu.sphinx.frontend.DataProcessor, edu.cmu.sphinx.util.props.Configurable

public class DataThrottle
extends edu.cmu.sphinx.frontend.BaseDataProcessor

a data processor that throttles the data flow and re-aligns microphone and IU world startup times


Field Summary
static java.lang.String PROP_SPEED
           
private  double speed
           
private  long startTime
           
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
DataThrottle()
           
 
Method Summary
 edu.cmu.sphinx.frontend.Data getData()
           
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, initialize, setPredecessor
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_SPEED

@S4Double(defaultValue=1.0)
public static final java.lang.String PROP_SPEED
See Also:
Constant Field Values

startTime

private long startTime

speed

private double speed
Constructor Detail

DataThrottle

public DataThrottle()
Method Detail

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class edu.cmu.sphinx.util.props.ConfigurableAdapter
Throws:
edu.cmu.sphinx.util.props.PropertyException

getData

public edu.cmu.sphinx.frontend.Data getData()
                                     throws edu.cmu.sphinx.frontend.DataProcessingException
Specified by:
getData in interface edu.cmu.sphinx.frontend.DataProcessor
Specified by:
getData in class edu.cmu.sphinx.frontend.BaseDataProcessor
Throws:
edu.cmu.sphinx.frontend.DataProcessingException