|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.frontend.BaseDataProcessor
An abstract DataProcessor implementing elements common to all concrete DataProcessors, such as name, predecessor, and timer.
Constructor Summary | |
BaseDataProcessor()
|
Method Summary | |
abstract Data |
getData()
Returns the processed Data output. |
java.lang.String |
getName()
Returns the name of this DataProcessor. |
DataProcessor |
getPredecessor()
Returns the predecessor DataProcessor. |
Timer |
getTimer()
Returns the timer this DataProcessor uses. |
void |
initialize()
Initializes this DataProcessor. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component has new data. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
void |
setPredecessor(DataProcessor predecessor)
Sets the predecessor DataProcessor. |
java.lang.String |
toString()
Returns the name of this BaseDataProcessor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BaseDataProcessor()
Method Detail |
public void register(java.lang.String name, Registry registry) throws PropertyException
Configurable
register
in interface Configurable
name
- the name of the componentregistry
- the registry for this component
PropertyException
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public abstract Data getData() throws DataProcessingException
getData
in interface DataProcessor
DataProcessingException
- if a data processor error occurspublic void initialize()
initialize
in interface DataProcessor
public java.lang.String getName()
getName
in interface DataProcessor
public DataProcessor getPredecessor()
getPredecessor
in interface DataProcessor
public Timer getTimer()
public void setPredecessor(DataProcessor predecessor)
setPredecessor
in interface DataProcessor
predecessor
- the new predecessor of this DataProcessorpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |