|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.electronics.Signal edu.nrao.sss.electronics.DigitalSignal
public class DigitalSignal
A frequency signal
that has been digitized.
Version Info:
$Revision: 1707 $ |
$Date: 2008-11-14 10:23:59 -0700 (Fri, 14 Nov 2008) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
DigitalSignal(FrequencyRange originalRange,
PolarizationType polarization,
Frequency samplingRate,
int bitsPerSample)
Creates a new digital signal with the given attributes. |
|
DigitalSignal(Signal analogSignal,
Frequency samplingRate,
int bitsPerSample)
Creates a new digital signal from another signal. |
Method Summary | |
---|---|
DigitalSignal |
clone()
Creates and returns a copy of this signal. |
boolean |
equals(Object o)
Returns true if o is equal to this signal. |
int |
getBitDepth()
Returns the number of bits per sample. |
Frequency |
getSamplingRate()
Returns the rate at which this signal was sampled. |
int |
hashCode()
Returns a hash code value for this signal. |
String |
toString()
Returns a text representation of this signal. |
Methods inherited from class edu.nrao.sss.electronics.Signal |
---|
appendToDevicePath, clone, getCurrentFrequencyFor, getCurrentRange, getDevicePath, getMappingIntercept, getMappingSlope, getName, getPolarization, getProxiedFrequencyFor, getProxiedRange, proxiedRangeIsReversed |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DigitalSignal(FrequencyRange originalRange, PolarizationType polarization, Frequency samplingRate, int bitsPerSample)
originalRange
- the frequency range of this signal. If this value is null
a NullPointerException
will be thrown.polarization
- the polarization of this signal. If this value is null
it will be converted to PolarizationType.UNSPECIFIED
.samplingRate
- the number of samples taken per second.bitsPerSample
- the number of bits per sample. If this value is less than one
an IllegalArgumentException
will be thrown.public DigitalSignal(Signal analogSignal, Frequency samplingRate, int bitsPerSample)
analogSignal
- another signal, usually analog, whose properties will
be copied into this signal.samplingRate
- the number of samples taken per second.bitsPerSample
- the number of bits per sample. If this value is less than one
an IllegalArgumentException
will be thrown.Method Detail |
---|
public Frequency getSamplingRate()
public int getBitDepth()
public String toString()
toString
in class Signal
public DigitalSignal clone()
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in class Signal
public boolean equals(Object o)
o
is equal to this signal.
equals
in class Signal
public int hashCode()
hashCode
in class Signal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |