Package org.orekit.time
Class SampledClockModel
- java.lang.Object
 - 
- org.orekit.time.SampledClockModel
 
 
- 
- All Implemented Interfaces:
 ClockModel
public class SampledClockModel extends Object implements ClockModel
Offset clock model backed up by a sample.- Since:
 - 12.1
 - Author:
 - Luc Maisonobe
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SampledClockModel(List<ClockOffset> sample, int nbInterpolationPoints)Simple constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableTimeStampedCache<ClockOffset>getCache()Get the clock offsets cache.ClockOffsetgetOffset(AbsoluteDate date)Get the clock offset at date.<T extends CalculusFieldElement<T>>
FieldClockOffset<T>getOffset(FieldAbsoluteDate<T> date)Get the clock offset at date.AbsoluteDategetValidityEnd()Get validity end.AbsoluteDategetValidityStart()Get validity start. 
 - 
 
- 
- 
Constructor Detail
- 
SampledClockModel
public SampledClockModel(List<ClockOffset> sample, int nbInterpolationPoints)
Simple constructor.- Parameters:
 sample- clock offsets samplenbInterpolationPoints- number of points to use in interpolation
 
 - 
 
- 
Method Detail
- 
getCache
public ImmutableTimeStampedCache<ClockOffset> getCache()
Get the clock offsets cache.- Returns:
 - clock offsets cache
 
 
- 
getValidityStart
public AbsoluteDate getValidityStart()
Get validity start.- Specified by:
 getValidityStartin interfaceClockModel- Returns:
 - model validity start
 
 
- 
getValidityEnd
public AbsoluteDate getValidityEnd()
Get validity end.- Specified by:
 getValidityEndin interfaceClockModel- Returns:
 - model validity end
 
 
- 
getOffset
public ClockOffset getOffset(AbsoluteDate date)
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
public <T extends CalculusFieldElement<T>> FieldClockOffset<T> getOffset(FieldAbsoluteDate<T> date)
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
 
 
 - 
 
 -