|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.om.EquPositionReferenceFrame
public class EquPositionReferenceFrame
EquPositionReferenceFrame describes the landscape in which certain
position values are valid.
This class should be used by all instances of org.jscience.ml.om.IPosition
to describe in which position reference frame their position values are
valid.
| Field Summary | |
|---|---|
static java.lang.String |
EQUINOX_2000
DOCUMENT ME! |
static java.lang.String |
ORIGIN_GEOCENTRIC
DOCUMENT ME! |
static java.lang.String |
ORIGIN_TOPOCENTRIC
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
EquPositionReferenceFrame(java.lang.String origin,
java.lang.String equinox)
Creates an instance of an EquPositionReferenceFrame. |
|
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element parent)
Adds this EquPositionReferenceFrame to an given parent XML DOM Element. |
boolean |
equals(java.lang.Object obj)
Overwrittes equals(Object) method from java.lang.Object. |
java.lang.String |
getEquinox()
Returns the equinox date of this position reference frame. |
java.lang.String |
getOrigin()
Returns the origin of this position reference frame. |
void |
setEquinox(java.lang.String equinox)
Sets the equinox date of this position reference frame. |
void |
setOrigin(java.lang.String origin)
Sets the origin of this position reference frame. |
java.lang.String |
toString()
Overwrittes toString() method from java.lang.Object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ORIGIN_GEOCENTRIC
public static final java.lang.String ORIGIN_TOPOCENTRIC
public static final java.lang.String EQUINOX_2000
| Constructor Detail |
|---|
public EquPositionReferenceFrame(java.lang.String origin,
java.lang.String equinox)
throws java.lang.IllegalArgumentException
origin - The origin of the position reference frame.
All valid values can be accessed by this classes constants.equinox - A equinox date. Should be formed like e.g. J2000.0
java.lang.IllegalArgumentException - if origin or equinox is null or
origin does not have a valid value.| Method Detail |
|---|
public java.lang.String toString()
Topocentric J2000.0
toString in class java.lang.ObjectObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The Object to compare this EquPositionReferenceFrame with.
true if the given Object is an instance of
EquPositionReferenceFrame and its equinox date and origin are
equal with this PositionReferenceFrames values.Objectpublic org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element parent)
parent - The parent element for this EquPositionReferenceFrame
null if parent was
null.Elementpublic java.lang.String getEquinox()
public java.lang.String getOrigin()
public void setEquinox(java.lang.String equinox)
throws java.lang.IllegalArgumentException
J2000.0
equinox - The equinox date to set
java.lang.IllegalArgumentException - if equinox was null
public void setOrigin(java.lang.String origin)
throws java.lang.IllegalArgumentException
origin - The new origin of this position reference frame
java.lang.IllegalArgumentException - if origin was null or did
not have valid value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||