Package org.orekit.time.clocks
Class ConstantClockModel
java.lang.Object
org.orekit.time.clocks.ConstantClockModel
- All Implemented Interfaces:
ClockModel
- Direct Known Subclasses:
PerfectClockModel
Clock model for a clock with constant offset.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOffset(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
-
ConstantClockModel
public ConstantClockModel(double offset) Simple constructor.- Parameters:
offset- constant offset
-
-
Method Details
-
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
-