|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.astronomy.SpectralLine
public class SpectralLine
A spectral line caused by emission or absorption of a photon.
This class is based on the definition of a spectral line used by the Splatalogue.
Version Info:
$Revision: 1951 $ |
$Date: 2009-02-03 16:26:19 -0700 (Tue, 03 Feb 2009) $ |
$Author: dharland $ |
Constructor Summary | |
---|---|
SpectralLine()
Creates a new instance. |
Method Summary | |
---|---|
SpectralLine |
clone()
Returns a spectral line that is a copy of this one. |
boolean |
equals(Object o)
Returns true if o is equal to this spectral line. |
Frequency |
getFrequency()
Returns the frequency of this line. |
Frequency |
getShiftedFrequency(LinearVelocity radialVelocity,
VelocityConvention convention)
Returns the apparent frequency of this line if its source is moving relative to the observer. |
String |
getSourceOfInformation()
Returns the source of information of this line. |
String |
getSpecies()
Returns the atom or molecule that generates this line. |
String |
getTransition()
Returns the transition that causes this line. |
Frequency |
getUncertainty()
Returns the uncertainty in the frequency of this line. |
int |
hashCode()
Returns a hash code value for this spectral line. |
void |
setFrequency(Frequency newFrequency)
Sets the frequency for this line. |
void |
setSourceOfInformation(String newSource)
Sets the source of information for this line. |
void |
setSpecies(String newSpecies)
Sets the species for this line. |
void |
setTransition(String newTransition)
Sets the transition for this line. |
void |
setUncertainty(Frequency newValue)
Sets the uncertainty in the frequency of this line. |
String |
toString()
Returns a text representation of this spectral line. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpectralLine()
Method Detail |
---|
public void setFrequency(Frequency newFrequency)
newFrequency
- the frequency for this line. If this value is
null, it will be replaced with
new Frequency()
.public Frequency getFrequency()
public void setSourceOfInformation(String newSource)
newSource
- the source of information for this line. If this value is
null, it will be replaced with the empty string
("").public String getSourceOfInformation()
public void setSpecies(String newSpecies)
newSpecies
- the source of this line. If this value is
null, it will be replaced with the empty string
("").public String getSpecies()
public void setTransition(String newTransition)
newTransition
- the transition that causes this line.
If this value null,
it will be replaced with the empty string
("").public String getTransition()
public void setUncertainty(Frequency newValue)
newValue
- the uncertainty in the frequency of this line.
If this value is null, it will be replaced with
new Frequency()
.public Frequency getUncertainty()
public Frequency getShiftedFrequency(LinearVelocity radialVelocity, VelocityConvention convention)
radialVelocity
- the velocity of the source of this line away from (positive values)
or toward (negative values) the observer. Note that this is the
component of the source's velocity directly away from or toward
the observer. If this value is null it will be treated as
a velocity of zero.convention
- the convention to use when using radialVelocity to calculate
the shifted frequency. If this value is null, the redshift
convention will be used if the velocity is in units of Z and
the radio convention will be used if it is in any other units.
public String toString()
toString
in class Object
public SpectralLine 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 spectral line.
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 |