Package org.orekit.time
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:
UTCTAIOffsetsLoader
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OffsetModel(DateComponents start, int offset)
Constructor for a constant offset model.OffsetModel(DateComponents start, int mjdRef, TimeOffset offset, int slope)
Constructor for a linear offset model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMJDRef()
Get the reference date of the linear model as a modified julian day.TimeOffset
getOffset()
Offset at reference date in seconds (TAI minus UTC).int
getSlope()
Offset slope in nanoseconds per UTC second (TAI minus UTC / dUTC).DateComponents
getStart()
Get the date of the offset start.
-
-
-
Constructor Detail
-
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 startmjdRef
- reference date of the linear model as a modified julian dayoffset
- 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 startoffset
- 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 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)
-
-