Class OpmData

  • All Implemented Interfaces:
    Data, Section

    public class OpmData
    extends Object
    implements Data
    Container for Orbit Parameter Message data.
    Since:
    11.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • OpmData

        public OpmData​(StateVector stateVectorBlock,
                       KeplerianElements keplerianElementsBlock,
                       SpacecraftParameters spacecraftParametersBlock,
                       CartesianCovariance covarianceBlock,
                       List<Maneuver> maneuverBlocks,
                       UserDefined userDefinedBlock,
                       double mass)
        Simple constructor.
        Parameters:
        stateVectorBlock - state vector logical block
        keplerianElementsBlock - Keplerian elements logical block (may be null)
        spacecraftParametersBlock - spacecraft parameters logical block (may be null)
        covarianceBlock - covariance matrix logical block (may be null)
        maneuverBlocks - maneuvers block list
        userDefinedBlock - user-defined logical block
        mass - mass (always defined, even if there is no spacecraftParameters block
    • 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
        Parameters:
        version - format version
      • getStateVectorBlock

        public StateVector getStateVectorBlock()
        Get the state vector logical block.
        Returns:
        state vector block
      • getKeplerianElementsBlock

        public KeplerianElements getKeplerianElementsBlock()
        Get the Keplerian elements logical block.
        Returns:
        Keplerian elements block (may be null)
      • getSpacecraftParametersBlock

        public SpacecraftParameters getSpacecraftParametersBlock()
        Get the spacecraft parameters logical block.
        Returns:
        spacecraft parameters block (may be null)
      • getCovarianceBlock

        public CartesianCovariance getCovarianceBlock()
        Get the covariance matrix logical block.
        Returns:
        covariance matrix block (may be null)
      • getMass

        public double getMass()
        Get the mass.
        Returns:
        mass
      • getNbManeuvers

        public int getNbManeuvers()
        Get the number of maneuvers present in the APM.
        Returns:
        the number of maneuvers
      • getManeuvers

        public List<Maneuver> getManeuvers()
        Get a list of all maneuvers.
        Returns:
        unmodifiable list of all maneuvers.
      • getManeuver

        public Maneuver getManeuver​(int index)
        Get a maneuver.
        Parameters:
        index - maneuver index, counting from 0
        Returns:
        maneuver
      • hasManeuvers

        public boolean hasManeuvers()
        Get boolean testing whether the APM contains at least one maneuver.
        Returns:
        true if APM contains at least one maneuver false otherwise
      • getUserDefinedBlock

        public UserDefined getUserDefinedBlock()
        Get the user defined parameters logical block.
        Returns:
        user defined parameters block (may be null)