public interface DataProcessor extends Configurable
initialize
method. (Note, however, that it is not always the case that a
DataProcessor belongs to a particular pipeline. For example, the Microphone
class is a DataProcessor,
but it usually does not belong to any particular pipeline.
Each DataProcessor usually have a predecessor as well. This is the previous DataProcessor in the pipeline. Again, not all DataProcessors have predecessors.
Calling getData
will return the
processed Data object.
Modifier and Type | Method and Description |
---|---|
Data |
getData()
Returns the processed Data output.
|
DataProcessor |
getPredecessor()
Returns the predecessor DataProcessor.
|
void |
initialize()
Initializes this DataProcessor.
|
void |
setPredecessor(DataProcessor predecessor)
Sets the predecessor DataProcessor.
|
newProperties
void initialize()
Data getData() throws DataProcessingException
DataProcessingException
- if a data processor error occursDataProcessor getPredecessor()
void setPredecessor(DataProcessor predecessor)
predecessor
- the new predecessor of this DataProcessor