Class CartesianCovariance

  • All Implemented Interfaces:
    Data, Section

    public class CartesianCovariance
    extends CommentsContainer
    implements Data
    Container for OPM/OMM/OCM Cartesian covariance matrix.
    Since:
    6.1
    Author:
    sports
    • Constructor Detail

      • CartesianCovariance

        public CartesianCovariance​(Supplier<FrameFacade> defaultFrameSupplier)
        Create an empty data set.
        Parameters:
        defaultFrameSupplier - supplier for default reference frame if no frame is specified in the CCSDS message
    • 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 CommentsContainer
        Parameters:
        version - format version
      • getEpoch

        public AbsoluteDate getEpoch()
        Get matrix epoch.
        Returns:
        matrix epoch
      • setEpoch

        public void setEpoch​(AbsoluteDate epoch)
        Set matrix epoch.
        Parameters:
        epoch - matrix epoch
      • getReferenceFrame

        public FrameFacade getReferenceFrame()
        Get the reference frame.
        Returns:
        The reference frame specified by the COV_REF_FRAME keyword or inherited from metadata
      • setReferenceFrame

        public void setReferenceFrame​(FrameFacade referenceFrame)
        Set the reference frame in which data are given.
        Parameters:
        referenceFrame - the reference frame to be set
      • getCovarianceMatrix

        public RealMatrix getCovarianceMatrix()
        Get the Position/Velocity covariance matrix.
        Returns:
        the Position/Velocity covariance matrix
      • setCovarianceMatrixEntry

        public void setCovarianceMatrixEntry​(int j,
                                             int k,
                                             double entry)
        Set an entry in the Position/Velocity covariance matrix.

        Both m(j, k) and m(k, j) are set.

        Parameters:
        j - row index (must be between 0 and 5 (inclusive)
        k - column index (must be between 0 and 5 (inclusive)
        entry - value of the matrix entry