public static class Time_Utilities.LineTimeAssay
extends java.lang.Object
errors
or simply diagnostic
messages.Constructor and Description |
---|
LineTimeAssay(Observation_Record observation)
Creates a new line time assay for an input observation record.
|
Modifier and Type | Method and Description |
---|---|
void |
addDiagnostic(java.lang.String msg) |
void |
addError(java.lang.String msg) |
java.util.List<java.lang.String> |
getDiagnostics() |
java.util.List<java.lang.String> |
getErrors() |
double |
getLineTime()
Gets the computed line time.
|
double |
getPredictShift() |
java.util.Date |
getPredictTime()
Gets the predict time used in the line time calculation.
|
java.lang.Double |
getRollAngle() |
java.util.Date |
getShiftedTime()
Gets the shifted predict time used in the line time calculation.
|
java.lang.Double |
getTargetAltitude() |
boolean |
hasErrors() |
boolean |
lineTimeIsUnknown() |
void |
printDiagnostics() |
public LineTimeAssay(Observation_Record observation)
If the observation uses manual delay
, its predict time is offset appropriately based on the delay duration
. Otherwise, the predict time
is used directly. Note that
if the predict time is null, the resulting line time is also
null, regardless of the delay settings.
The offset center
altitude
of the target site is used, if non-null; otherwise the altitude
is used. If both altitudes are
null, an altitude of 0 km is assumed.
The roll angle
is used
directly; if null, the roll angle is assumed to be 0.
observation
- the observation for which line time is to be computed;
may not be null, although its relevant parameters may be.public double getLineTime()
unknown number
value (-9999) is returned.public java.util.Date getPredictTime()
line time
is -9999).public java.util.Date getShiftedTime()
line time
is -9999). If manual
delay is not used, this value is the same as the unshifted
predict time.public double getPredictShift()
public java.lang.Double getRollAngle()
public java.lang.Double getTargetAltitude()
public java.util.List<java.lang.String> getErrors()
public java.util.List<java.lang.String> getDiagnostics()
public void addError(java.lang.String msg)
public void addDiagnostic(java.lang.String msg)
public boolean lineTimeIsUnknown()
public boolean hasErrors()
public void printDiagnostics()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona