|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.electronics.SignalManifold
public class SignalManifold
A device that takes an input signal and replicates it on all of its outputs.
Version Info:
$Revision: 1006 $ |
$Date: 2007-11-16 11:19:54 -0700 (Fri, 16 Nov 2007) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
SignalManifold(int numberOfOutputs)
Creates a new manifold with the given number of outputs. |
Method Summary | |
---|---|
void |
execute()
Executes the output pipes of this device. |
void |
executeFromStartOfChainUpTo(SignalProcessor firstUnexecutedDevice)
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)
Executes this device and all downstream devices up to, but not including, the firstUnexecutedDevice . |
SignalPipe |
getInputPipe()
Returns the input pipe of this device. |
int |
getNumberOfOutputs()
Returns the number of outputs from this manifold. |
SignalPipe |
getOutputPipe(int index)
Returns the index th output pipe of this device. |
Signal |
getSignal()
Returns the signal provided by the input pipe of this device. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignalManifold(int numberOfOutputs)
numberOfOutputs
- the number of outputs eminating from this manifold.
IllegalArgumentException
- if numberOfOutputs
is negative.Method Detail |
---|
public int getNumberOfOutputs()
public SignalPipe getInputPipe()
myFork.getInputPipe().connectInputTo(mySource);
public SignalPipe getOutputPipe(int index)
index
th output pipe of this device.
A typical usage pattern for this method is:myFork.getOutputPipe(p).connectOutputTo(myProcessor);
Indexing begins at zero.
index
th output pipe of this device.public Signal getSignal()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |