T
- type to map data from and topublic class Mapping<T> extends AbstractSignalProcessor<T,T>
MapFunction
to each
provided object of type T (for example to all data of a RealAudioBuffer
}).
The function could be e.g. a WindowFunction.Hamming
window or a
Filters.FIRFilter
. Due to its universal nature, this is a central
SignalProcessor
class.lastOut, signalProcessorSupport
Constructor and Description |
---|
Mapping() |
Mapping(MapFunction<T> mapFunction) |
Mapping(MapFunction<T> mapFunction,
Object id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MapFunction<T> |
getMapFunction() |
int |
hashCode() |
protected T |
processNext(T buffer)
Processes the given input and returns some output.
|
void |
reset()
Calls
SignalSource.reset() , if a source is set. |
void |
setMapFunction(MapFunction<T> mappingFunction) |
String |
toString() |
connectTo, connectTo, connectTo, disconnectFrom, flush, getConnectedProcessors, getConnectedSource, getId, getOutput, process, read, setId
public Mapping()
public Mapping(MapFunction<T> mapFunction)
public Mapping(MapFunction<T> mapFunction, Object id)
public MapFunction<T> getMapFunction()
public void setMapFunction(MapFunction<T> mappingFunction)
public void reset()
AbstractSignalProcessor
SignalSource.reset()
, if a source is set.reset
in interface SignalSource<T>
reset
in class AbstractSignalProcessor<T,T>
protected T processNext(T buffer) throws IOException
AbstractSignalProcessor
processNext
in class AbstractSignalProcessor<T,T>
buffer
- input guaranteed not to be null
.IOException
- if an IO error occursCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.