Class BaseAttitudeDataServer<A extends IAttitude>
java.lang.Object
gaiasky.util.gaia.BaseAttitudeDataServer<A>
- Direct Known Subclasses:
AnalyticalAttitudeDataServer, NumericalAttitudeDataServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanSome scanning laws have constants or tables for interpolation that need to be computed before the first use and recomputed after changing certain reference values.protected TimeContextprotected TimeContextnative and initially requested time context of the server - has to be set by the implementing classprotected booleanswitch to decide if attitude uncertainties and correlations should be calculated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttitude(long time) getAttitude(Instant instant) getAttitude(Date date) protected abstract AgetAttitudeNative(long time) Evaluate the attitude in the native time system of the serverlongbooleanvoidsetInitialized(boolean initialized) voidsetRefTime(long t)
-
Field Details
-
initialized
protected boolean initializedSome scanning laws have constants or tables for interpolation that need to be computed before the first use and recomputed after changing certain reference values. This flag indicates that the constants or tables (whatever applicable) are up-to-date. -
nativeTimeContext
native and initially requested time context of the server - has to be set by the implementing class -
initialRequestedTimeContext
-
withUncertaintiesCorrelations
protected boolean withUncertaintiesCorrelationsswitch to decide if attitude uncertainties and correlations should be calculated
-
-
Constructor Details
-
BaseAttitudeDataServer
public BaseAttitudeDataServer()
-
-
Method Details
-
isInitialized
public boolean isInitialized()- Returns:
- Returns the initialised.
-
setInitialized
public void setInitialized(boolean initialized) -
getAttitude
-
getAttitude
-
getAttitude
- Parameters:
time- The elapsed time in nanoseconds since J2010
-
getAttitudeNative
Evaluate the attitude in the native time system of the server -
getRefTime
public long getRefTime()- Returns:
- The reference time in ns
-
setRefTime
public void setRefTime(long t) - Parameters:
t- Reference time in nanoseconds (jd)
-