|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.project.scan.ScanDopplerSpecs
public class ScanDopplerSpecs
A grouping of a sky position, radial velocity, and rest frame for specifying Doppler tracking information for a scan.
Version Info:
$Revision: 2102 $ |
$Date: 2009-03-12 08:49:53 -0600 (Thu, 12 Mar 2009) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
ScanDopplerSpecs()
Creates a new specification with a null position and velocity. |
|
ScanDopplerSpecs(SkyPosition sourcePosition,
LinearVelocity sourceVelocity,
VelocityFrame restFrame,
VelocityConvention velocityConvention)
Creates a new specification with the given properties. |
Method Summary | |
---|---|
ScanDopplerSpecs |
clone()
|
boolean |
equals(Object o)
|
SkyPosition |
getPosition()
The sky position to use for Doppler tracking. |
VelocityFrame |
getRestFrame()
The rest frame to use for the Doppler tracking velocity. |
LinearVelocity |
getVelocity()
The source velocity to use for Doppler tracking. |
VelocityConvention |
getVelocityConvention()
The velocity convention to use for the Doppler tracking velocity. |
int |
hashCode()
|
void |
setPosition(SkyPosition newPosition)
Sets the sky position to use when Doppler tracking. |
void |
setVelocity(LinearVelocity newVelocity,
VelocityFrame newFrame,
VelocityConvention newConvention)
Sets the source velocity to use when Doppler tracking. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScanDopplerSpecs()
public ScanDopplerSpecs(SkyPosition sourcePosition, LinearVelocity sourceVelocity, VelocityFrame restFrame, VelocityConvention velocityConvention)
sourcePosition
- See setPosition(SkyPosition)
.sourceVelocity
- See setVelocity(LinearVelocity, VelocityFrame, VelocityConvention)
.restFrame
- See setVelocity(LinearVelocity, VelocityFrame, VelocityConvention)
.velocityConvention
- See setVelocity(LinearVelocity, VelocityFrame, VelocityConvention)
.Method Detail |
---|
public final void setPosition(SkyPosition newPosition)
newPosition
- a position to use for Doppler tracking calculations.
A value of null may be used as a signal to the scan
to use the position of its source.public final void setVelocity(LinearVelocity newVelocity, VelocityFrame newFrame, VelocityConvention newConvention)
newVelocity
- a source velocity to use for Doppler tracking calculations.
Note that this is only the radial velocity of a source relative
to a frame of rest. It does not account for the motion of Earth.
A value of null may be used as a signal to the scan
to use the velocity of its source.newFrame
- the rest frame against which newVelocity
is measured.newConvention
- the convention used to determine newVelocity
.
IllegalArgumentException
- if exactly one of the parameters is null.public SkyPosition getPosition()
public LinearVelocity getVelocity()
Note that the returned velocity is only that of the source with
respect to its rest frame
. It does
not include the motion of Earth.
If the returned value is null, the returned value of
getRestFrame()
and getVelocityConvention()
will also be null.
public VelocityConvention getVelocityConvention()
If the returned value is null, the returned value of
getVelocity()
and getRestFrame()
will also be null.
public VelocityFrame getRestFrame()
If the returned value is null, the returned value of
getVelocity()
and getVelocityConvention()
will also be null.
public ScanDopplerSpecs clone()
clone
in class Object
public boolean equals(Object o)
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 |