|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.science.AbstractScienceObject
jsky.science.ProperMotion
public class ProperMotion
The apparent motion of an object on the celestial sphere. ProperMotion is a change in right-ascension and declination in degrees per year. ProperMotion also includes an error for both values (+/- degrees).
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jsky.science.AbstractScienceObject |
---|
AbstractScienceObject.EventMonitor |
Field Summary | |
---|---|
static java.lang.String |
DECERROR_PROPERTY
|
static java.lang.String |
OFFSET_PROPERTY
|
static java.lang.String |
RAERROR_PROPERTY
|
Fields inherited from interface jsky.science.ScienceObjectModel |
---|
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY |
Constructor Summary | |
---|---|
ProperMotion()
Constructs and initializes a proper motion of 0, 0 degrees per year. |
|
ProperMotion(double ra,
double dec)
Constructs and initializes a proper motion with the specified values in degrees. |
|
ProperMotion(double ra,
double dec,
double raErr,
double decErr)
Constructs and initializes a proper motion with the specified values in degrees. |
|
ProperMotion(double ra,
double dec,
double raErr,
double decErr,
java.lang.String units)
Constructs and initializes a proper motion with the specified values in specified units |
|
ProperMotion(double ra,
double dec,
java.lang.String units)
Constructs and initializes a proper motion with the specified values in specified units. |
|
ProperMotion(ProperMotion pm)
Constructs and initializes a proper motion with the same values as the specified ProperMotion object. |
Method Summary | |
---|---|
Coordinates |
computePosition(Coordinates oldPosition,
double endYear)
Computes a new position by taking an existing position and accounting for proper motion over the specified number of years. |
Coordinates |
computePosition(Coordinates oldPosition,
double endYear,
double startYear)
Computes a new position by taking an existing position and accounting for proper motion over the specified number of years. |
boolean |
equals(java.lang.Object obj)
Determines whether two proper motions are equal. |
double |
getDecError()
Returns the declination component of proper motion error in degrees. |
CoordinatesOffset |
getOffset()
|
double |
getRaError()
Returns the right-ascension component of proper motion error in degrees. |
void |
setDecError(double err)
Sets the proper motion Dec error in degrees. |
void |
setOffset(CoordinatesOffset offset)
|
void |
setRaError(double err)
Sets the proper motion RA error in degrees. |
java.lang.String |
toString()
Returns a string representation of this proper motion's values. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OFFSET_PROPERTY
public static final java.lang.String RAERROR_PROPERTY
public static final java.lang.String DECERROR_PROPERTY
Constructor Detail |
---|
public ProperMotion()
public ProperMotion(ProperMotion pm)
public ProperMotion(double ra, double dec)
public ProperMotion(double ra, double dec, java.lang.String units)
public ProperMotion(double ra, double dec, double raErr, double decErr, java.lang.String units)
public ProperMotion(double ra, double dec, double raErr, double decErr)
Method Detail |
---|
public CoordinatesOffset getOffset()
public void setOffset(CoordinatesOffset offset)
public double getRaError()
public double getDecError()
public void setRaError(double err)
public void setDecError(double err)
public Coordinates computePosition(Coordinates oldPosition, double endYear)
oldPosition
- start with this positionendYear
- compute new position for this year
public Coordinates computePosition(Coordinates oldPosition, double endYear, double startYear)
oldPosition
- start with this positionendYear
- compute new position for this yearstartYear
- assume oldPosition measured on this year
public boolean equals(java.lang.Object obj)
equals
in class AbstractScienceObject
public java.lang.String toString()
toString
in class AbstractScienceObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |