edu.cmu.sphinx.frontend
Class DataBlocker
java.lang.Object
edu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.DataBlocker
- All Implemented Interfaces:
- DataProcessor, Configurable
public class DataBlocker
- extends BaseDataProcessor
A DataProcessor
which wraps incoming DoubleData
-objects into equally size blocks of defined
length.
Field Summary |
static java.lang.String |
PROP_BLOCK_SIZE_MS
The SphinxProperty name for the block size of generated data-blocks in milliseconds. |
static float |
PROP_BLOCK_SIZE_MS_DEFAULT
The default value for PROP_BLOCK_SIZE_MS. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROP_BLOCK_SIZE_MS
@S4Double(defaultValue=10.0)
public static final java.lang.String PROP_BLOCK_SIZE_MS
- The SphinxProperty name for the block size of generated data-blocks in milliseconds.
- See Also:
- Constant Field Values
PROP_BLOCK_SIZE_MS_DEFAULT
public static final float PROP_BLOCK_SIZE_MS_DEFAULT
- The default value for PROP_BLOCK_SIZE_MS.
- See Also:
- Constant Field Values
DataBlocker
public DataBlocker()
DataBlocker
public DataBlocker(double blockSizeMs)
getData
public Data getData()
throws DataProcessingException
- Description copied from class:
BaseDataProcessor
- Returns the processed Data output.
- Specified by:
getData
in interface DataProcessor
- Specified by:
getData
in class BaseDataProcessor
- Returns:
- an Data object that has been processed by this DataProcessor
- Throws:
DataProcessingException
- if a data processor error occurs
newProperties
public void newProperties(PropertySheet propertySheet)
throws PropertyException
- Description copied from interface:
Configurable
- This method is called when this configurable component needs to be reconfigured.
- Specified by:
newProperties
in interface Configurable
- Overrides:
newProperties
in class BaseDataProcessor
- Parameters:
propertySheet
- a property sheet holding the new data
- Throws:
PropertyException
- if there is a problem with the properties.
getBlockSizeMs
public double getBlockSizeMs()