Package gaiasky.util.gaia
Class NumericalAttitudeDataServer<A extends Attitude>
- java.lang.Object
-
- gaiasky.util.gaia.BaseAttitudeDataServer<A>
-
- gaiasky.util.gaia.NumericalAttitudeDataServer<A>
-
- Type Parameters:
A
- type of Attitude this server is serving
- Direct Known Subclasses:
HermiteInterpolatedAttitudeDataServer
public abstract class NumericalAttitudeDataServer<A extends Attitude> extends BaseAttitudeDataServer<A>
This abstract class defines the fields and implements the methods that any numerically defined attitude need in addition to those in the superclass.
-
-
Field Summary
Fields Modifier and Type Field Description protected GtiList
gtis
List of good time intervals-
Fields inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
initialized, initialRequestedTimeContext, nativeTimeContext, withUncertaintiesCorrelations
-
-
Constructor Summary
Constructors Constructor Description NumericalAttitudeDataServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GtiList
getGtis()
Get the set of good time intervals for the spacecraft attitude.long
getStartTime()
long
getStopTime()
abstract void
initialize()
Any numerical attitude needs to be initializedboolean
isValid(long t)
Check if the there is a valid attitude at a given time-
Methods inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
getAttitude, getAttitude, getAttitudeNative, getRefTime, isInitialized, setInitialized, setRefTime
-
-
-
-
Field Detail
-
gtis
protected GtiList gtis
List of good time intervals
-
-
Method Detail
-
initialize
public abstract void initialize()
Any numerical attitude needs to be initialized- Throws:
java.lang.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
public GtiList 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 set 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
-
-