edu.cmu.sphinx.frontend.databranch
Class FrontEndSplitter
java.lang.Object
edu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.databranch.FrontEndSplitter
- All Implemented Interfaces:
- DataProducer, DataProcessor, Configurable
public class FrontEndSplitter
- extends BaseDataProcessor
- implements DataProducer
Creates push-branches out of a Frontend. This might be used for for push-decoding or to create new pull-streams
- See Also:
FrameDecoder
,
DataBufferProcessor
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROP_DATA_LISTENERS
@S4ComponentList(type=Configurable.class,
beTolerant=true)
public static final java.lang.String PROP_DATA_LISTENERS
- See Also:
- Constant Field Values
FrontEndSplitter
public FrontEndSplitter()
newProperties
public void newProperties(PropertySheet ps)
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:
ps
- a property sheet holding the new data
- Throws:
PropertyException
- if there is a problem with the properties.
getData
public Data getData()
throws DataProcessingException
- Reads and returns the next Data frame or return
null
if no data is available.
- Specified by:
getData
in interface DataProcessor
- Specified by:
getData
in class BaseDataProcessor
- Returns:
- the next Data or
null
if none is available
- Throws:
DataProcessingException
- if there is a data processing error
addDataListener
public void addDataListener(DataListener l)
- Description copied from interface:
DataProducer
- Registers a new listener for
Data
s.
- Specified by:
addDataListener
in interface DataProducer
removeDataListener
public void removeDataListener(DataListener l)
- Description copied from interface:
DataProducer
- Unregisters a listener fors
Data
s.
- Specified by:
removeDataListener
in interface DataProducer