public class ProperMotion extends AbstractScienceObject
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
AbstractScienceObject.EventMonitor
Modifier and Type | Field and Description |
---|---|
static String |
DECERROR_PROPERTY |
static String |
OFFSET_PROPERTY |
static String |
RAERROR_PROPERTY |
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY
Constructor and Description |
---|
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,
String units)
Constructs and initializes a proper motion with the specified values in specified units
|
ProperMotion(double ra,
double dec,
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.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
String |
toString()
Returns a string representation of this proper motion's values.
|
addEventMonitor, addPropertyChangeListener, areNamesEqual, clearAllListeners, clone, compareTo, createDefaultName, firePropertyChange, firePropertyChange, fireReplaceObject, fireReplaceObject, fireReplaceObject, fireVetoableChange, fireVetoableChange, getException, getLabel, getName, getObjectIdString, getObjectIdString, getParent, isHolding, isPending, isTracing, isValid, notifyEventMonitors, propertyChange, removeEventMonitor, removePropertyChangeListener, replaceObject, replaceObjectNYI, setException, setHolding, setName, setParent, setTraceAll, setTracing, writeDebug, writeError
public static final String OFFSET_PROPERTY
public static final String RAERROR_PROPERTY
public static final String DECERROR_PROPERTY
public ProperMotion()
public ProperMotion(ProperMotion pm)
public ProperMotion(double ra, double dec)
public ProperMotion(double ra, double dec, String units)
public ProperMotion(double ra, double dec, double raErr, double decErr, String units)
public ProperMotion(double ra, double dec, double raErr, double decErr)
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 yearpublic Coordinates computePosition(Coordinates oldPosition, double endYear, double startYear)
oldPosition
- start with this positionendYear
- compute new position for this yearstartYear
- assume oldPosition measured on this yearpublic boolean equals(Object obj)
equals
in class AbstractScienceObject
public String toString()
toString
in class AbstractScienceObject
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.