net.grelf.astro
Class ProperMotion

java.lang.Object
  extended by net.grelf.astro.ProperMotion
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ProperMotion
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Representing the proper motion of a star, in RA and Dec, with units (always) of arcsec per year.

See Also:
Serialized Form

Constructor Summary
ProperMotion(double pmRA_arcsecPerYr, double pmDec_arcsecPerYr)
           
 
Method Summary
 ProperMotion clone()
          Returns a new ProperMotion object with the same data.
 boolean equals(java.lang.Object other)
           
 double getPmDec_arcsecPerYr()
           
 double getPmRA_arcsecPerYr()
           
 int hashCode()
          Enable objects of this class to be used as hash keys.
 boolean isKnown()
          True if either RA or Dec fields are non-zero.
 java.lang.String toString()
           
 java.lang.StringBuffer toXML()
          <PM> and sub-elements in a single line.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProperMotion

public ProperMotion(double pmRA_arcsecPerYr,
                    double pmDec_arcsecPerYr)
Method Detail

getPmRA_arcsecPerYr

public double getPmRA_arcsecPerYr()

getPmDec_arcsecPerYr

public double getPmDec_arcsecPerYr()

isKnown

public boolean isKnown()
True if either RA or Dec fields are non-zero.


equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Enable objects of this class to be used as hash keys.

Overrides:
hashCode in class java.lang.Object

clone

public ProperMotion clone()
Returns a new ProperMotion object with the same data.

Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXML

public java.lang.StringBuffer toXML()
<PM> and sub-elements in a single line.