public class OffsetModel extends Object
UTCTAIOffsetsLoader
Constructor and Description |
---|
OffsetModel(DateComponents start,
int offset)
Constructor for a constant offset model.
|
OffsetModel(DateComponents start,
int mjdRef,
double offset,
double slope)
Constructor for a linear offset model.
|
Modifier and Type | Method and Description |
---|---|
int |
getMJDRef()
Get the reference date of the linear model as a modified julian day.
|
double |
getOffset()
Offset at reference date in seconds (TAI minus UTC).
|
double |
getSlope()
Offset slope in seconds per UTC day (TAI minus UTC / dUTC).
|
DateComponents |
getStart()
Get the date of the offset start.
|
public OffsetModel(DateComponents start, int mjdRef, double offset, double slope)
These models were used prior to 1972.
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 seconds per UTC day (TAI minus UTC / dUTC)public OffsetModel(DateComponents start, int offset)
These models are used since 1972.
start
- date of the offset startoffset
- offset at reference date in seconds (TAI minus UTC)public DateComponents getStart()
public int getMJDRef()
public double getOffset()
public double getSlope()
Copyright © 2002-2020 CS Group. All rights reserved.