edu.cmu.sphinx.frontend.databranch
Class FrontEndSplitter

java.lang.Object
  extended by edu.cmu.sphinx.frontend.BaseDataProcessor
      extended by 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

Field Summary
static java.lang.String PROP_DATA_LISTENERS
           
 
Constructor Summary
FrontEndSplitter()
           
 
Method Summary
 void addDataListener(DataListener l)
          Registers a new listener for Datas.
 Data getData()
          Reads and returns the next Data frame or return null if no data is available.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 void removeDataListener(DataListener l)
          Unregisters a listener fors Datas.
 
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

PROP_DATA_LISTENERS

@S4ComponentList(type=Configurable.class,
                 beTolerant=true)
public static final java.lang.String PROP_DATA_LISTENERS
See Also:
Constant Field Values
Constructor Detail

FrontEndSplitter

public FrontEndSplitter()
Method Detail

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 Datas.

Specified by:
addDataListener in interface DataProducer

removeDataListener

public void removeDataListener(DataListener l)
Description copied from interface: DataProducer
Unregisters a listener fors Datas.

Specified by:
removeDataListener in interface DataProducer