public final class SimpleObservation extends AbstractObservation
To instantiate a new simple observation, use the SimpleObservation.Builder
. Create a
new builder with the oberver, target, and ephemeris time of interest,
optionally set a label and/or comment, and invoke its build
method. For example, to create a new observation with an Observer
called mro of a Target
called aramChaos,
use the following code:
SimpleObservation observation = new SimpleObservation.Builder ( mro, aramChaos, 295272514.521 ).label ("ESP_013158_1830").comment ("Stereo-1 of Aram Chaos").build ();
At construction, the location of the observer with respect to the target's body at that time is calculated, as are the subsolar point on the target's body, the photometric angles (phase, incidence, and emission), and the solar longitude, Ls.
It is assumed that all necessary SPICE kernels are loaded into the SPICE
kernel pool when the observation is constructed; if not, a SpiceException
will be thrown.
If the builder's optional label (or comment) is null, the simple observation's label (or comment) will be set to the empty string ("") at construction; neither will be null.
Modifier and Type | Class and Description |
---|---|
static class |
SimpleObservation.Builder
A builder for an immutable simple observation.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
basicObservationData
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getComment()
Gets the observation's optional comment.
|
java.lang.String |
getLabel()
Gets the observation's optional label.
|
int |
hashCode()
Returns a hash code value for this stereo target.
|
java.lang.String |
toString()
Gets a string representation of this simple observation.
|
getAltitude, getEmissionAngle, getEt, getIncidenceAngle, getLatitude, getLongitude, getObserver, getPhaseAngle, getPositionVector, getSolarAltitude, getSolarAzimuth, getSolarDeclination, getSolarLongitude, getSolarRightAscension, getSubsolarLatitude, getSubsolarLatitudeSlope, getSubsolarLongitude, getSubsolarLongitudeSlope, getTarget, getVelocityVector, getViewVector
public static final java.lang.String ID
public java.lang.String getLabel()
getLabel
in interface Observation
getLabel
in class AbstractObservation
public java.lang.String getComment()
getComment
in interface Observation
getComment
in class AbstractObservation
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to which this object is compared.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona