|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.DataBlocker
public class DataBlocker
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. |
| Constructor Summary | |
|---|---|
DataBlocker()
|
|
DataBlocker(double blockSizeMs)
|
|
| Method Summary | |
|---|---|
double |
getBlockSizeMs()
|
Data |
getData()
Returns the processed Data output. |
java.lang.String |
getName()
Returns the name of this DataProcessor. |
void |
newProperties(PropertySheet propertySheet)
This method is called when this configurable component needs to be reconfigured. |
| Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor |
|---|
getPredecessor, getTimer, initialize, setPredecessor, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@S4Double(defaultValue=10.0) public static final java.lang.String PROP_BLOCK_SIZE_MS
public static final float PROP_BLOCK_SIZE_MS_DEFAULT
| Constructor Detail |
|---|
public DataBlocker()
public DataBlocker(double blockSizeMs)
| Method Detail |
|---|
public Data getData()
throws DataProcessingException
BaseDataProcessor
getData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processor error occurs
public void newProperties(PropertySheet propertySheet)
throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class BaseDataProcessorpropertySheet - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public java.lang.String getName()
BaseDataProcessor
getName in interface DataProcessorgetName in class BaseDataProcessorpublic double getBlockSizeMs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||