IO - type of the output values of the corresponding SignalProcessorpublic class SignalProcessorSupport<IO> extends Object
SignalProcessors.| Constructor and Description |
|---|
SignalProcessorSupport() |
| Modifier and Type | Method and Description |
|---|---|
<O2> SignalProcessor<IO,O2> |
connectTo(int channel,
SignalProcessor<IO,O2> signalProcessor)
Registers a child processor for a specific channel.
|
<O2> SignalProcessor<IO,O2> |
connectTo(SignalProcessor<IO,O2> signalProcessor)
Registers a child processor.
|
<O2> SignalProcessor<IO,O2> |
disconnectFrom(int channel,
SignalProcessor<IO,O2> signalProcessor)
Removes a child processor.
|
<O> SignalProcessor<IO,O> |
disconnectFrom(SignalProcessor<IO,O> signalProcessor)
Removes a child processor.
|
void |
flush()
Flush all kids.
|
int |
getChannelCount()
Number of the channel with the highest channel number which also has children.
|
SignalProcessor<IO,?>[] |
getConnectedProcessors()
Lists all registered processors.
|
SignalProcessor<IO,?>[] |
getConnectedProcessors(int channel)
Lists all registered processors.
|
void |
process(int channel,
IO i)
Propagate the output
i to all children by calling their
SignalProcessor.process(Object) method. |
void |
process(IO i)
Propagate the output
i to all children by calling their
SignalProcessor.process(Object) method. |
void |
process(IO[] signal)
Propagate the signal to all children by calling their
SignalProcessor.process(Object) method. |
public <O2> SignalProcessor<IO,O2> connectTo(SignalProcessor<IO,O2> signalProcessor)
signalProcessor - processordisconnectFrom(com.tagtraum.jipes.SignalProcessor),
getConnectedProcessors()public <O2> SignalProcessor<IO,O2> connectTo(int channel, SignalProcessor<IO,O2> signalProcessor)
O2 - output type of the processor we want to connect tochannel - channel or bandsignalProcessor - processordisconnectFrom(com.tagtraum.jipes.SignalProcessor),
getConnectedProcessors()public <O> SignalProcessor<IO,O> disconnectFrom(SignalProcessor<IO,O> signalProcessor)
O - output type of the processor we want to disconnect fromsignalProcessor - processorconnectTo(com.tagtraum.jipes.SignalProcessor),
getConnectedProcessors()public <O2> SignalProcessor<IO,O2> disconnectFrom(int channel, SignalProcessor<IO,O2> signalProcessor)
O2 - output type of the processor we want to disconnect fromchannel - channel or bandsignalProcessor - processorconnectTo(com.tagtraum.jipes.SignalProcessor),
getConnectedProcessors()public SignalProcessor<IO,?>[] getConnectedProcessors()
nulldisconnectFrom(com.tagtraum.jipes.SignalProcessor),
connectTo(com.tagtraum.jipes.SignalProcessor)public SignalProcessor<IO,?>[] getConnectedProcessors(int channel)
channel - channel or bandnulldisconnectFrom(com.tagtraum.jipes.SignalProcessor),
connectTo(com.tagtraum.jipes.SignalProcessor)public void process(IO i) throws IOException
i to all children by calling their
SignalProcessor.process(Object) method.i - outputIOException - if something goes wrongpublic void process(IO[] signal) throws IOException
SignalProcessor.process(Object) method.signal - array of signals for all channelsIOException - if something goes wrongpublic void process(int channel,
IO i)
throws IOException
i to all children by calling their
SignalProcessor.process(Object) method.channel - channel or bandi - outputIOException - if something goes wrongpublic void flush()
throws IOException
IOException - if something goes wrongpublic int getChannelCount()
Copyright © 2011–2020 tagtraum industries incorporated. All rights reserved.