Class OffsetModel

    • Constructor Detail

      • OffsetModel

        public OffsetModel​(DateComponents start,
                           int mjdRef,
                           double offset,
                           double slope)
        Constructor for a linear offset model.

        These models were used prior to 1972.

        Parameters:
        start - date of the offset start
        mjdRef - reference date of the linear model as a modified julian day
        offset - offset at reference date in seconds (TAI minus UTC)
        slope - offset slope in seconds per UTC day (TAI minus UTC / dUTC)
      • OffsetModel

        public OffsetModel​(DateComponents start,
                           int offset)
        Constructor for a constant offset model.

        These models are used since 1972.

        Parameters:
        start - date of the offset start
        offset - offset at reference date in seconds (TAI minus UTC)
    • Method Detail

      • getStart

        public DateComponents getStart()
        Get the date of the offset start.
        Returns:
        date of the offset start
      • getMJDRef

        public int getMJDRef()
        Get the reference date of the linear model as a modified julian day.
        Returns:
        reference date of the linear model as a modified julian day
      • getOffset

        public double getOffset()
        Offset at reference date in seconds (TAI minus UTC).
        Returns:
        offset at reference date in seconds (TAI minus UTC)
      • getSlope

        public double getSlope()
        Offset slope in seconds per UTC day (TAI minus UTC / dUTC).
        Returns:
        offset slope in seconds per UTC day (TAI minus UTC / dUTC)