Enum CcsdsTimeScale

    • Method Detail

      • values

        public static CcsdsTimeScale[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CcsdsTimeScale c : CcsdsTimeScale.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CcsdsTimeScale valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • parseDate

        public AbsoluteDate parseDate​(String date,
                                      IERSConventions conventions,
                                      AbsoluteDate missionReferenceDate)
        Parse a date in this time scale.
        Parameters:
        date - a CCSDS date string.
        conventions - IERS conventions for UT1 and GMST.
        missionReferenceDate - epoch for MET and MRT.
        Returns:
        parsed date.
      • getTimeScale

        public abstract TimeScale getTimeScale​(IERSConventions conventions)
        Get the corresponding TimeScale.
        Parameters:
        conventions - IERS Conventions for the GMST and UT1 scales.
        Returns:
        the time scale.
      • contains

        public static boolean contains​(String timeScale)
        Check if timeScale is one of the values supported by this enum.
        Parameters:
        timeScale - specifier.
        Returns:
        true if valueOf(String) will not throw an exception with the same string.