|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.resource.SpectralLineSpecification
public class SpectralLineSpecification
A specification for observing a spectral transition in a distance object. Instances of this class are used to help choose and configure instrumentation that can obtain data that conform to the encapsulated specifications.
Version Info:
$Revision: 1709 $ |
$Date: 2008-11-14 11:22:37 -0700 (Fri, 14 Nov 2008) $ |
$Author: dharland $ |
Constructor Summary | |
---|---|
SpectralLineSpecification()
Creates a new instance. |
Method Summary | |
---|---|
SpectralLineSpecification |
adjustVelocityForSkyFrequencyOf(FrequencyRange skyFreqRange)
Alters the velocity values of this specification so that its sky frequencies equal the endpoints of skyFreqRange . |
SpectralLineSpecification |
clone()
Returns a specification that is a copy of this one. |
boolean |
equals(Object o)
Returns true if o is equal to this specification. |
SpectralLine |
getLine()
Returns the spectral line of this specification. |
SortedSet<StokesParameter> |
getPolarizationProducts()
Returns the polarization products requested by this specification. |
LinearVelocity |
getSourceVelocity()
Returns the velocity of the source of this spectral line. |
TimeDuration |
getTimeResolution()
Returns the time resolution of this specification. |
LinearVelocity |
getVelocityBandwidth()
Returns the width of the velocity range that is centered on getSourceVelocity() . |
LinearVelocity |
getVelocityResolution()
Returns the velocity resolution of this specification. |
int |
hashCode()
Returns a hash code value for this specification. |
void |
setLine(SpectralLine newLine)
Sets the spectral line of this specification. |
void |
setPolarizationProducts(SortedSet<StokesParameter> newSet)
Sets the polarization products requested by this specification. |
void |
setSourceVelocity(LinearVelocity newVelocity)
Sets the velocity of the source of this spectral line away from or toward the observer. |
void |
setTimeResolution(TimeDuration resolution)
Sets the time resolution of this specification. |
void |
setVelocityBandwidth(LinearVelocity newBandwidth)
Helps set the minimum and maximum velocities for this observation. |
void |
setVelocityResolution(LinearVelocity newResolution)
Sets velocity resolution of this specification. |
SkyFrequencySpecification |
toSkyFrequencySpecification()
Returns a sky frequency specification that corresponds to this spectral line specification. |
String |
toString()
Returns a text representation of this specification. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpectralLineSpecification()
Method Detail |
---|
public SkyFrequencySpecification toSkyFrequencySpecification()
public SpectralLineSpecification adjustVelocityForSkyFrequencyOf(FrequencyRange skyFreqRange)
skyFreqRange
.
Only the velocity range is changed; the rest frequency and resolutions
of this specification are unaltered. If this specification's rest
frequency is zero, this method does nothing.
skyFreqRange
- the range of sky frequencies to which the rest
frequency of this specification is constrained.
public void setLine(SpectralLine newLine)
This specification will hold a reference to newLine
(unless it is
null), so any changes made to it after this call will be reflected
in this specification.
newLine
- the spectral line of this specification.
If this value is null,
it will be replaced with new SpectralLine()
.public SpectralLine getLine()
The returned line is the one held by this specification, so any changes made to it will be reflected in this object. This value is guaranteed to be non-null.
public void setSourceVelocity(LinearVelocity newVelocity)
Unless newVelocity
is null,
this object will hold a reference to the parameter,
so any changes made to it will be reflected in this object.
A value of null will be interpreted as a velocity
of zero kilometers per second.
newVelocity
- the velocity of the source of this spectral line away from
or toward the observer.public LinearVelocity getSourceVelocity()
Note that the returned velocity is the one held by this specification, so any changes made to it will be reflected in this object. This value is guaranteed to be non-null.
public void setVelocityBandwidth(LinearVelocity newBandwidth)
source velocity
minus (plus) one-half of newBandwidth
.
If newBandwidth
is null, this method does nothing.
Unless newBandwidth
is null,
this object will hold a reference to the parameter,
so any changes made to it will be reflected in this object.
A value of null will be interpreted as a bandwidth
of zero kilometers per second.
newBandwidth
- the width of the velocity range that is centered on
getSourceVelocity()
.public LinearVelocity getVelocityBandwidth()
getSourceVelocity()
.
Note that the returned width is the one held by this specification, so any changes made to it will be reflected in this object. This value is guaranteed to be non-null.
getSourceVelocity()
.setVelocityBandwidth(LinearVelocity)
public void setVelocityResolution(LinearVelocity newResolution)
Unless newResolution
is null,
this object will hold a reference to the parameter,
so any changes made to it will be reflected in this object.
A value of null will be interpreted as a resolution
equal to that of this specification's current bandwidth.
newResolution
- velocity resolution of this specification.public LinearVelocity getVelocityResolution()
Note that the returned resolution is the one held by this specification, so any changes made to it will be reflected in this object. This value is guaranteed to be non-null.
public void setTimeResolution(TimeDuration resolution)
Unless resolution
is null,
this object will hold a reference to the parameter,
so any changes made to it will be reflected in this object.
A value of null will be interpreted as a duration
of zero milliseconds.
resolution
- the time resolution of this specification.public TimeDuration getTimeResolution()
Note that the returned duration is the one held by this specification, so any changes made to it will be reflected in this object. This value is guaranteed to be non-null.
public void setPolarizationProducts(SortedSet<StokesParameter> newSet)
Unless newSet
is null,
this object will hold a reference to the parameter,
so any changes made to it will be reflected in this object.
A value of null will be interpreted as a new empty set.
newSet
- the polarizations requested by this specification.
If this value is null, it will be interpreted
as an empty set.public SortedSet<StokesParameter> getPolarizationProducts()
Note that the returned set is the one held by this specification, so any changes made to it will be reflected in this object. This set is guaranteed to be non-null, but it may be empty.
public String toString()
toString
in class Object
public SpectralLineSpecification clone()
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in class Object
public boolean equals(Object o)
o
is equal to this specification.
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |