|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.electronics.LocalOscillatorPath
public class LocalOscillatorPath
A signal path that begins with a local oscillator and contains an optional multiplier and optional output filter.
Version Info:
$Revision: 1693 $ |
$Date: 2008-11-06 11:56:39 -0700 (Thu, 06 Nov 2008) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
LocalOscillatorPath(SignalSource localOsc,
BigDecimal loMultiplier,
FrequencyRange outputFilter)
Creates a new local oscillator path. |
|
LocalOscillatorPath(SignalSource localOsc,
int loMultiplier,
FrequencyRange outputFilter)
Creates a new local oscillator path. |
Method Summary | |
---|---|
Frequency |
getLOFreqToMoveCenterViaAddition(Frequency from,
Frequency to)
Returns the value to which this path's source of signal should be tuned in order to move one frequency to another. |
Frequency |
getLOFreqToMoveCenterViaSubtraction(Frequency from,
Frequency to)
Returns the value to which this path's source of signal should be tuned in order to move one frequency to another. |
BigDecimal |
getMultiplier()
Returns the multiplication factor used on the local oscillator's signal. |
FrequencyRange |
getOutputRange()
Returns the broadest possible range the signal from for this LO path. |
Signal |
getSignal()
Returns the signal produced by this local oscillator path. |
void |
setLOToMoveCenterViaAddition(Frequency from,
Frequency to)
Sets this path's local oscillator to a frequency that will convert from to to via addition. |
void |
setLOToMoveCenterViaSubtraction(Frequency from,
Frequency to)
Sets this path's local oscillator to a frequency that will convert from to to via subtraction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalOscillatorPath(SignalSource localOsc, BigDecimal loMultiplier, FrequencyRange outputFilter)
localOsc
- this path's source of signal. This is usually a
LocalOscillator
, but does not have to be.
A value of null is permitted, but will render this
object nearly useless, as most of its methods will return
null.loMultiplier
- the amount by which the signal from localOsc
should
be multiplied. A value of null indicates that no
multiplication should occur.outputFilter
- the filter through which the multiplied signal (if any
multiplication occurs) is passed. A value of null
indicates that no filtering should occur.public LocalOscillatorPath(SignalSource localOsc, int loMultiplier, FrequencyRange outputFilter)
localOsc
- this path's source of signal. This is usually a
LocalOscillator
, but does not have to be.
A value of null is permitted, but will render this
object nearly useless, as most of its methods will return
null.loMultiplier
- the amount by which the signal from localOsc
should
be multiplied.outputFilter
- the filter through which the multiplied signal (if any
multiplication occurs) is passed. A value of null
indicates that no filtering should occur.Method Detail |
---|
public Frequency getLOFreqToMoveCenterViaSubtraction(Frequency from, Frequency to)
to
by subtracting from
from
its multiplied signal.
(TODO: not yet handling filter. What if desired tuning doesn't pass through filter? Exception? Return null? Return 0.0Hz?)
(TODO: same issue if subtraction can not accomplish goal.)
from
- the frequency to be shifted.to
- the result of shifting from
using this path's LO
and multiplier.
from
to to
.public Frequency getLOFreqToMoveCenterViaAddition(Frequency from, Frequency to)
to
by adding its multiplied signal
to from
.
(TODO: not yet handling filter. What if desired tuning doesn't pass through filter? Exception? Return null? Return 0.0Hz?)
(TODO: same issue if addition can not accomplish goal.)
from
- the frequency to be shifted.to
- the result of shifting from
using this path's LO
and multiplier.
from
to to
.public void setLOToMoveCenterViaSubtraction(Frequency from, Frequency to)
from
to to
via subtraction.
This method accomplishes its task by first calling
getLOFreqToMoveCenterViaSubtraction(Frequency, Frequency)
,
so all the caveats for that method apply here.
In addition, if this path's source of signal is not an LO,
no tuning can be performed.
from
- the frequency to be shifted.to
- the result of shifting from
using this path's LO
and multiplier.public void setLOToMoveCenterViaAddition(Frequency from, Frequency to)
from
to to
via addition.
This method accomplishes its task by first calling
getLOFreqToMoveCenterViaAddition(Frequency, Frequency)
,
so all the caveats for that method apply here.
In addition, if this path's source of signal is not an LO,
no tuning can be performed.
from
- the frequency to be shifted.to
- the result of shifting from
using this path's LO
and multiplier.public Signal getSignal()
The returned value will be null if this path has no source, or if its source produces a null signal.
getSignal
in interface SignalSource
public BigDecimal getMultiplier()
public FrequencyRange getOutputRange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |