Class AemMetadata

  • All Implemented Interfaces:
    Section

    public class AemMetadata
    extends AdmMetadata
    This class gathers the meta-data present in the Attitude Data Message (ADM).
    Since:
    10.2
    Author:
    Bryan Cazabonne
    • Constructor Detail

      • AemMetadata

        public AemMetadata​(int defaultInterpolationDegree)
        Simple constructor.
        Parameters:
        defaultInterpolationDegree - default interpolation degree
    • Method Detail

      • validate

        public void validate​(double version)
        Check is all mandatory entries have been initialized.

        This method should throw an exception if some mandatory entries are missing or not compatible with version number.

        Specified by:
        validate in interface Section
        Overrides:
        validate in class AdmMetadata
        Parameters:
        version - format version
      • getEndpoints

        public AttitudeEndpoints getEndpoints()
        Get the endpoints (i.e. frames A, B and their relationship).
        Returns:
        endpoints
      • rateFrameIsA

        public boolean rateFrameIsA()
        Check if rates are specified in frame A.
        Returns:
        true if rates are specified in frame A
      • setRateFrameIsA

        public void setRateFrameIsA​(boolean rateFrameIsA)
        Set the frame in which rates are specified.
        Parameters:
        rateFrameIsA - if true, rates are specified in frame A
      • setAngvelFrame

        public void setAngvelFrame​(FrameFacade angvelFrame)
        Set frame in which angular velocities are specified.
        Parameters:
        angvelFrame - frame in which angular velocities are specified
        Since:
        12.0
      • getFrameAngvelFrame

        public FrameFacade getFrameAngvelFrame()
        Get frame in which angular velocities are specified.
        Returns:
        frame in which angular velocities are specified
        Since:
        12.0
      • isSpacecraftBodyRate

        public boolean isSpacecraftBodyRate()
        Check if rates are specified in spacecraft body frame.

        Mandatory entries must have been initialized properly to non-null values before this method is called, otherwise NullPointerException will be thrown.

        Returns:
        true if rates are specified in spacecraft body frame
      • getAttitudeType

        public AttitudeType getAttitudeType()
        Get the format of the data lines in the message.
        Returns:
        the format of the data lines in the message
      • setAttitudeType

        public void setAttitudeType​(AttitudeType type)
        Set the format of the data lines in the message.
        Parameters:
        type - format to be set
      • isFirst

        public Boolean isFirst()
        Get the flag for the placement of the quaternion QC in the attitude data.
        Returns:
        true if QC is the first element in the attitude data, false if not initialized
      • setIsFirst

        public void setIsFirst​(boolean isFirst)
        Set the flag for the placement of the quaternion QC in the attitude data.
        Parameters:
        isFirst - true if QC is the first element in the attitude data
      • getEulerRotSeq

        public RotationOrder getEulerRotSeq()
        Get the rotation order of Euler angles.
        Returns:
        rotation order
      • setEulerRotSeq

        public void setEulerRotSeq​(RotationOrder eulerRotSeq)
        Set the rotation order for Euler angles.
        Parameters:
        eulerRotSeq - order to be set
      • getStartTime

        public AbsoluteDate getStartTime()
        Get start of total time span covered by attitude data.
        Returns:
        the start time
      • setStartTime

        public void setStartTime​(AbsoluteDate startTime)
        Set start of total time span covered by attitude data.
        Parameters:
        startTime - the time to be set
      • getStopTime

        public AbsoluteDate getStopTime()
        Get end of total time span covered by attitude data.
        Returns:
        the stop time
      • setStopTime

        public void setStopTime​(AbsoluteDate stopTime)
        Set end of total time span covered by attitude data.
        Parameters:
        stopTime - the time to be set
      • getUseableStartTime

        public AbsoluteDate getUseableStartTime()
        Get start of useable time span covered by attitude data.
        Returns:
        the useable start time
      • setUseableStartTime

        public void setUseableStartTime​(AbsoluteDate useableStartTime)
        Set start of useable time span covered by attitude data.
        Parameters:
        useableStartTime - the time to be set
      • getUseableStopTime

        public AbsoluteDate getUseableStopTime()
        Get end of useable time span covered by ephemerides data.
        Returns:
        the useable stop time
      • setUseableStopTime

        public void setUseableStopTime​(AbsoluteDate useableStopTime)
        Set end of useable time span covered by ephemerides data.
        Parameters:
        useableStopTime - the time to be set
      • getStart

        public AbsoluteDate getStart()
        Get the start date of this ephemeris segment.
        Returns:
        ephemeris segment start date.
      • getStop

        public AbsoluteDate getStop()
        Get the end date of this ephemeris segment.
        Returns:
        ephemeris segment end date.
      • getInterpolationMethod

        public String getInterpolationMethod()
        Get the interpolation method to be used.
        Returns:
        the interpolation method
      • setInterpolationMethod

        public void setInterpolationMethod​(String interpolationMethod)
        Set the interpolation method to be used.
        Parameters:
        interpolationMethod - the interpolation method to be set
      • getInterpolationDegree

        public int getInterpolationDegree()
        Get the interpolation degree.
        Returns:
        the interpolation degree
      • setInterpolationDegree

        public void setInterpolationDegree​(int interpolationDegree)
        Set the interpolation degree.
        Parameters:
        interpolationDegree - the interpolation degree to be set
      • getInterpolationSamples

        public int getInterpolationSamples()
        Get the number of samples to use in interpolation.
        Returns:
        the number of points to use for interpolation.