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
Fields inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
initialized, initialRequestedTimeContext, nativeTimeContext, withUncertaintiesCorrelations
-
Constructor Summary
-
Method Summary
Methods inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
getAttitude, getAttitude, getAttitude, getAttitudeNative, getRefTime, isInitialized, setInitialized, setRefTime
-
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
-