Package gaiasky.util.gaia
Class HermiteInterpolatedAttitudeDataServer
- java.lang.Object
-
- gaiasky.util.gaia.BaseAttitudeDataServer<A>
-
- gaiasky.util.gaia.NumericalAttitudeDataServer<Attitude>
-
- gaiasky.util.gaia.HermiteInterpolatedAttitudeDataServer
-
- Direct Known Subclasses:
MslAttitudeDataServer
public abstract class HermiteInterpolatedAttitudeDataServer extends NumericalAttitudeDataServer<Attitude>
This abstract class contains the fields needed to store numerical attitude in the form of arrays (q and SRS rates), and a method to calculate the attitude for any given time using cubic Hermite interpolation
-
-
Field Summary
Fields Modifier and Type Field Description protected intnTprotected double[]qWprotected double[]qXprotected double[]qYprotected double[]qZprotected double[]rateXprotected double[]rateYprotected double[]rateZprotected long[]tNs-
Fields inherited from class gaiasky.util.gaia.NumericalAttitudeDataServer
gtis
-
Fields inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
initialized, initialRequestedTimeContext, nativeTimeContext, withUncertaintiesCorrelations
-
-
Constructor Summary
Constructors Constructor Description HermiteInterpolatedAttitudeDataServer(long tStart, Duration tLength)Constructor for a given start time and mission length
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AttitudegetAttitudeNative(long t)Evaluate the attitude in the native time system of the serverabstract voidinitialize()Any numerical attitude needs to be initialized-
Methods inherited from class gaiasky.util.gaia.NumericalAttitudeDataServer
getGtis, getStartTime, getStopTime, isValid
-
Methods inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
getAttitude, getAttitude, getRefTime, isInitialized, setInitialized, setRefTime
-
-
-
-
Constructor Detail
-
HermiteInterpolatedAttitudeDataServer
public HermiteInterpolatedAttitudeDataServer(long tStart, Duration tLength)Constructor for a given start time and mission length- Parameters:
tStart- start time of the valid attitude intervaltLength- length of the valid attitude interval
-
-
Method Detail
-
initialize
public abstract void initialize() throws java.lang.RuntimeExceptionDescription copied from class:NumericalAttitudeDataServerAny numerical attitude needs to be initialized- Specified by:
initializein classNumericalAttitudeDataServer<Attitude>- Throws:
java.lang.RuntimeException- initialization fails- See Also:
This method will compute the attitude and attitude rate at discrete points and store in the arrays tNs, qX, rateX, etc
-
getAttitudeNative
public Attitude getAttitudeNative(long t) throws java.lang.RuntimeException
Description copied from class:BaseAttitudeDataServerEvaluate the attitude in the native time system of the server- Specified by:
getAttitudeNativein classBaseAttitudeDataServer<Attitude>- Parameters:
t- - the time elapsed since the epoch of J2010 in ns (TCB)- Returns:
- attitude for the given time
- Throws:
java.lang.RuntimeException- See Also:
BaseAttitudeDataServer.getAttitude(long)
-
-