|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.electronics.SignalCombiner
A recent change to the Signal
class changed its the way in which
it holds frequencies. It had held these in the form of a
FrequencySpectrum
; it now holds them in the form of a
FrequencyRange
. This change compromises the ability of this
combiner. The main consequence is that if signals S and
T hold non-overlapping, non-contiguous, ranges, the combined
signal contains all of S, all of T, and
the range in between them.
Version Info:
$Revision: 1198 $ |
$Date: 2008-04-02 18:59:31 -0600 (Wed, 02 Apr 2008) $ |
$Author: dharland $ (last person to modify) |
public class SignalCombiner
Constructor Summary | |
---|---|
SignalCombiner(int numberOfInputs)
Deprecated. Creates a new combiner with the given number of inputs. |
Method Summary | |
---|---|
Signal |
combine(Collection<Signal> input)
Deprecated. Creates and returns a new signal that is the result of applying this combiner to the given collection of input signals. |
void |
eraseSignalMemory()
Deprecated. Erases this device's memory of its most recent execution. |
void |
execute()
Deprecated. Runs this device on the signals received from its input pipes and then executes the processor connected to its output pipe, if any. |
void |
executeFromStartOfChainUpTo(SignalProcessor firstUnexecutedDevice)
Deprecated. Retreats upstream from this processor to the source of the stream and executes that device(s), telling it to stop execution at firstUnexecutedDevice . |
void |
executeUpTo(SignalProcessor firstUnexecutedDevice)
Deprecated. Executes this device and all downstream devices up to, but not including, the firstUnexecutedDevice . |
SignalPipe |
getInputPipe(int index)
Deprecated. Returns the index th input pipe of this device. |
int |
getNumberOfInputs()
Deprecated. Returns the number of inputs into this combiner. |
SignalPipe |
getOutputPipe()
Deprecated. Returns the output pipe of this device. |
Signal |
getSignal()
Deprecated. Returns a copy of the signal produced by the most recent execution of this device. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignalCombiner(int numberOfInputs)
numberOfInputs
- the number of inputs merging into this combiner.
IllegalArgumentException
- if numberOfInputs
is negative.Method Detail |
---|
public int getNumberOfInputs()
public SignalPipe getInputPipe(int index)
index
th input pipe of this device.
A typical usage pattern for this method is:myCombiner.getInputPipe(p).connectInputTo(mySource);
index
th input pipe of this device.public SignalPipe getOutputPipe()
myCombiner.getOutputPipe().connectOutputTo(myProcessor);
public void eraseSignalMemory()
getSignal()
public Signal getSignal()
execution
of this device.
If this device has never been run, or if the input signals
it processed most recently were all null, the returned value will
be null.
getSignal
in interface SignalSource
public void execute()
execute
in interface SignalProcessor
public void executeUpTo(SignalProcessor firstUnexecutedDevice)
SignalProcessor
firstUnexecutedDevice
.
See SignalProcessor.execute()
for more information about the linking
of processors.
executeUpTo
in interface SignalProcessor
firstUnexecutedDevice
- the first device downstream that is not to be executed.
If all downstream devices should be executed you may use a
null value here or call SignalProcessor.execute()
.public void executeFromStartOfChainUpTo(SignalProcessor firstUnexecutedDevice)
SignalProcessor
firstUnexecutedDevice
.
executeFromStartOfChainUpTo
in interface SignalProcessor
firstUnexecutedDevice
- the first device in a chain of processors that is not
to be executed.
If all devices should be executed you may use a
null value here.
The first unexecuted device should be downstream of this
device.public Signal combine(Collection<Signal> input)
Note that the input
signals and this combiner are
not affected by calls to this method.
input
- the signals to be combined.
input
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |