Package org.orekit.time.clocks
Class SampledClockModel
java.lang.Object
org.orekit.time.clocks.SampledClockModel
- All Implemented Interfaces:
ClockModel
Offset clock model backed up by a sample.
- Since:
- 12.1
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionSampledClockModel(List<ClockOffset> sample, int nbInterpolationPoints) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCache()Get the clock offsets cache.getOffset(AbsoluteDate date) Get the clock offset at date.<T extends CalculusFieldElement<T>>
FieldClockOffset<T> getOffset(FieldAbsoluteDate<T> date) Get the clock offset at date.Get validity end.Get validity start.
-
Constructor Details
-
SampledClockModel
Simple constructor.- Parameters:
sample- clock offsets samplenbInterpolationPoints- number of points to use in interpolation
-
-
Method Details
-
getCache
Get the clock offsets cache.- Returns:
- clock offsets cache
-
getValidityStart
Get validity start.- Specified by:
getValidityStartin interfaceClockModel- Returns:
- model validity start
-
getValidityEnd
Get validity end.- Specified by:
getValidityEndin interfaceClockModel- Returns:
- model validity end
-
getOffset
Get the clock offset at date.- Specified by:
getOffsetin interfaceClockModel- Parameters:
date- date at which offset is requested- Returns:
- clock offset at specified date
-
getOffset
Get the clock offset at date.- Specified by:
getOffsetin interfaceClockModel- Type Parameters:
T- type of the field elements- Parameters:
date- date at which offset is requested- Returns:
- clock offset at specified date
-