Class OffsetModel

java.lang.Object
org.orekit.time.OffsetModel
All Implemented Interfaces:
Serializable

public class OffsetModel extends Object implements Serializable
TAI UTC offset model.
Since:
7.1
Author:
Luc Maisonobe
See Also:
  • Constructor Details

    • OffsetModel

      public OffsetModel(DateComponents start, int mjdRef, TimeOffset offset, int 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 nanoseconds per UTC second (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 Details

    • 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 TimeOffset getOffset()
      Offset at reference date in seconds (TAI minus UTC).
      Returns:
      offset at reference date in seconds (TAI minus UTC)
    • getSlope

      public int getSlope()
      Offset slope in nanoseconds per UTC second (TAI minus UTC / dUTC).
      Returns:
      offset slope in nanoseconds per UTC second (TAI minus UTC / dUTC)