Class Metadata

    • Constructor Detail

      • Metadata

        protected Metadata​(TimeSystem defaultTimeSystem)
        Simple constructor.
        Parameters:
        defaultTimeSystem - default time system (may be null)
    • 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
      • getTimeSystem

        public TimeSystem getTimeSystem()
        Get the Time System that: for OPM, is used for metadata, state vector, maneuver and covariance data, for OMM, is used for metadata, orbit state and covariance data, for OEM, is used for metadata, ephemeris and covariance data.
        Returns:
        the time system
      • setTimeSystem

        public void setTimeSystem​(TimeSystem timeSystem)
        Set the Time System that: for OPM, is used for metadata, state vector, maneuver and covariance data, for OMM, is used for metadata, orbit state and covariance data, for OEM, is used for metadata, ephemeris and covariance data.
        Parameters:
        timeSystem - the time system to be set
      • getLaunchYear

        protected int getLaunchYear​(String objectID)
        Get the launch year.
        Parameters:
        objectID - object identifier
        Returns:
        launch year
      • getLaunchNumber

        protected int getLaunchNumber​(String objectID)
        Get the launch number.
        Parameters:
        objectID - object identifier
        Returns:
        launch number
      • getLaunchPiece

        protected String getLaunchPiece​(String objectID)
        Get the piece of launch.
        Parameters:
        objectID - object identifier
        Returns:
        piece of launch