|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.frontend.BaseDataProcessor
public abstract class 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. |
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 needs to be reconfigured. |
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 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 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()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |