Class NumericalAttitudeDataServer<A extends IAttitude>

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 IAttitude> 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 Details

    • gtis

      protected GtiList 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

      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