Package org.orekit.time.clocks
Class AbstractCombinedClocksPair
java.lang.Object
org.orekit.time.clocks.AbstractCombinedClocksPair
- All Implemented Interfaces:
ClockModel
- Direct Known Subclasses:
ClocksDifference,ClocksSum
Clock model combining two underlying models.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCombinedClocksPair(ClockModel clock1, ClockModel clock2) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ClockOffsetcombine(ClockOffset offset1, ClockOffset offset2) Combine two offsets.protected abstract <T extends CalculusFieldElement<T>>
FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.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
-
AbstractCombinedClocksPair
Simple constructor.- Parameters:
clock1- first underlying clockclock2- second underlying clock
-
-
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
-
combine
Combine two offsets.- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-
combine
protected abstract <T extends CalculusFieldElement<T>> FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.- Type Parameters:
T- type of the field elements- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-