|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.electronics.SignalFilter
public class SignalFilter
A filter that operates on the current frequencies of signals
.
Filters can only narrow the range of frequencies of the signals
that pass through them. Filters perform no other transformations.
When a filter narrows the current frequency range of a signal, it
also narrows the proxied range in a consistent manner.
Version Info:
$Revision: 1241 $ |
$Date: 2008-04-25 14:37:37 -0600 (Fri, 25 Apr 2008) $ |
$Author: dharland $ (last person to modify) |
Method Summary | |
---|---|
void |
eraseSignalMemory()
Erases this device's memory of its most recent execution. |
void |
execute()
Runs this device on the signal received from its input pipe and then executes the processor connected to its output pipe, if any. |
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 . |
Signal |
filter(Signal input)
Creates and returns a new signal that is the result of applying this filter to the given input signal. |
SignalPipe |
getInputPipe()
Returns the input pipe of this device. |
Signal |
getMostRecentInput()
Returns a copy of the input signal most recently processed by this device. |
Signal |
getMostRecentOutput()
Returns a copy of the output signal most recently produced by this device. |
SignalPipe |
getOutputPipe()
Returns the output pipe of this device. |
FrequencyRange |
getPassBand()
Returns the range of frequencies that may pass through this filter. |
Signal |
getSignal()
Returns a copy of the signal produced by the most recent execution of this device. |
static SignalFilter |
make(String deviceName,
FrequencyRange passingRange)
Creates and returns a new filter that blocks all frequencies outside the given range. |
static SignalFilter |
make(String deviceName,
String minFreqGHz,
String maxFreqGHz)
Creates and returns a new filter that blocks all frequencies outside the given range. |
static SignalFilter |
makeHighPass(String deviceName,
String minFreqGHz)
Creates and returns a new filter that blocks all frequencies below minFreqGHz . |
static SignalFilter |
makeLowPass(String deviceName,
String maxFreqGHz)
Creates and returns a new filter that blocks all frequencies above maxFreqGHz . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SignalFilter makeHighPass(String deviceName, String minFreqGHz)
minFreqGHz
.
deviceName
- an optional name for this filter. If this value is null
a default name will be used in its place.minFreqGHz
- the lowest frequency, in gigahertz, that may pass through this filter.
public static SignalFilter makeLowPass(String deviceName, String maxFreqGHz)
maxFreqGHz
.
deviceName
- an optional name for this filter. If this value is null
a default name will be used in its place.maxFreqGHz
- the highest frequency, in gigahertz, that may pass through this filter.
public static SignalFilter make(String deviceName, String minFreqGHz, String maxFreqGHz)
deviceName
- an optional name for this filter. If this value is null
a default name will be used in its place.minFreqGHz
- the lowest frequency, in gigahertz, that may pass through this filter.maxFreqGHz
- the highest frequency, in gigahertz, that may pass through this filter.
public static SignalFilter make(String deviceName, FrequencyRange passingRange)
deviceName
- an optional name for this filter. If this value is null
a default name will be used in its place.passingRange
- the range of frequencies that may pass through this filter.
The endpoints of this range may both pass through this filter.
public FrequencyRange getPassBand()
public SignalPipe getInputPipe()
myFilter.getInputPipe().connectInputTo(mySource);
public SignalPipe getOutputPipe()
myFilter.getOutputPipe().connectOutputTo(myProcessor);
public Signal getMostRecentInput()
processed
by this device.
If this processor has never been executed, or if the input signal
it processed most recently was null, the returned value will
be null.
public Signal getMostRecentOutput()
produced
by this device.
If this processor has never been executed, or if the input signal
it processed most recently was null, the returned value will
be null.
public void eraseSignalMemory()
getMostRecentInput()
,
getMostRecentOutput()
,
getSignal()
public Signal getSignal()
execution
of this device.
If this device has never been run, or if the input signal
it processed most recently was null, the returned value will
be null.
getSignal
in interface SignalSource
public void execute()
getMostRecentInput()
and getMostRecentOutput()
methods.
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 filter(Signal input)
Note that the input
signal and this filter are
not affected by calls to this method. In other words this filter
will not remember the input signal sent in or the output
signal produced. This is in contrast to a call to the
execute()
methods.
input
- the signal to be filtered.
input
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |