All Implemented Interfaces:
TimeStamped

This class gathers the informations present in the Orbital Parameter Message (OPM).
Since:
6.1
Author:
sports
  • Field Details

  • Constructor Details

    • Opm

      public Opm(OdmHeader header, List<Segment<OdmCommonMetadata,OpmData>> segments, IERSConventions conventions, DataContext dataContext, double mu)
      Simple constructor.
      Parameters:
      header - file header
      segments - file segments
      conventions - IERS conventions
      dataContext - used for creating frames, time scales, etc.
      mu - gravitational coefficient to use for building Cartesian/Keplerian orbits
  • Method Details

    • getMetadata

      public OdmCommonMetadata getMetadata()
      Get the file metadata.
      Returns:
      file metadata
    • getData

      public OpmData getData()
      Get the file data.
      Returns:
      file data
    • getDate

      public AbsoluteDate getDate()
      Get the date.
      Specified by:
      getDate in interface TimeStamped
      Returns:
      date attached to the object
    • getNbManeuvers

      public int getNbManeuvers()
      Get the number of maneuvers present in the OPM.
      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()
      check whether the OPM contains at least one maneuver.
      Returns:
      true if OPM contains at least one maneuver false otherwise
    • getPVCoordinates

      public TimeStampedPVCoordinates getPVCoordinates()
      Get the position/velocity coordinates contained in the OPM.
      Returns:
      the position/velocity coordinates contained in the OPM
    • generateCartesianOrbit

      public CartesianOrbit generateCartesianOrbit()
      Generate a Cartesian orbit.
      Returns:
      generated orbit
    • generateKeplerianOrbit

      public KeplerianOrbit generateKeplerianOrbit()
      Generate a keplerian orbit.
      Returns:
      generated orbit
    • generateSpacecraftState

      public SpacecraftState generateSpacecraftState()
      Generate spacecraft state from the CartesianOrbit generated by generateCartesianOrbit.
      Returns:
      the spacecraft state of the OPM