Class Inertia

java.lang.Object
org.orekit.files.ccsds.section.CommentsContainer
org.orekit.files.ccsds.ndm.adm.apm.Inertia
All Implemented Interfaces:
Section

public class Inertia extends CommentsContainer
Inertia.
Since:
12.0
Author:
Luc Maisonobe
  • Constructor Details

    • Inertia

      public Inertia()
      Simple constructor.
  • Method Details

    • 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
    • setFrame

      public void setFrame(FrameFacade frame)
      Set frame in which inertia is specified.
      Parameters:
      frame - frame in which inertia is specified
    • getFrame

      public FrameFacade getFrame()
      Get frame in which inertia is specified.
      Returns:
      frame in which inertia is specified
    • getInertiaMatrix

      public RealMatrix getInertiaMatrix()
      Get the inertia matrix.
      Returns:
      the inertia matrix
    • setInertiaMatrixEntry

      public void setInertiaMatrixEntry(int j, int k, double entry)
      Set an entry in the inertia matrix.

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

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