Class NumericalAttitudeDataServer<A extends IAttitude>
java.lang.Object
gaiasky.util.gaia.BaseAttitudeDataServer<A>
gaiasky.util.gaia.NumericalAttitudeDataServer<A>
- Direct Known Subclasses:
HermiteInterpolatedAttitudeDataServer
public abstract class NumericalAttitudeDataServer<A extends IAttitude>
extends BaseAttitudeDataServer<A>
-
Field Summary
FieldsFields inherited from class BaseAttitudeDataServer
initialized, initialRequestedTimeContext, nativeTimeContext, withUncertaintiesCorrelationsModifier 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
Methods inherited from class BaseAttitudeDataServer
getAttitude, getAttitude, getAttitude, getAttitudeNative, getRefTime, isInitialized, setInitialized, setRefTimeModifier 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
-
gtis
List of good time intervals
-
-
Constructor Details
-
NumericalAttitudeDataServer
public NumericalAttitudeDataServer()
-
-
Method Details
-
initialize
public abstract void initialize()Any numerical attitude needs to be initialized- Throws:
RuntimeException- initialization fails
-
isValid
public boolean isValid(long t) Check if the there is a valid attitude at a given time- Parameters:
t- time- Returns:
- true if the attitude is valid for time t
-
getGtis
Get the set of good time intervals for the spacecraft attitude. Note that this may not be the same as the times for which an attitude is defined in the input data; an implementation may censor time periods, for example when the attitude uncertainty is higher than a defined threshold.- Returns:
- the list of attitude Good Time Intervals.
-
getStartTime
public long getStartTime()- Returns:
- start time of this attitude segment - this is the earliest time at which attitude can be requested
-
getStopTime
public long getStopTime()- Returns:
- end time of this attitude segment - this is the latest time at which attitude can be requested
-