Package org.orekit.time.clocks
Class ClocksDifference
java.lang.Object
org.orekit.time.clocks.AbstractCombinedClocksPair
org.orekit.time.clocks.ClocksDifference
- All Implemented Interfaces:
ClockModel
Clock model computing the difference of two underlying models.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ClockOffsetcombine(ClockOffset offset1, ClockOffset offset2) Combine two offsets.protected <T extends CalculusFieldElement<T>>
FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.Methods inherited from class org.orekit.time.clocks.AbstractCombinedClocksPair
getOffset, getOffset, getValidityEnd, getValidityStart
-
Constructor Details
-
ClocksDifference
Simple constructor.The combined clock is
clock1 - clock2- Parameters:
clock1- first underlying clockclock2- second underlying clock
-
-
Method Details
-
combine
Description copied from class:AbstractCombinedClocksPairCombine two offsets.- Specified by:
combinein classAbstractCombinedClocksPair- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-
combine
protected <T extends CalculusFieldElement<T>> FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.- Specified by:
combinein classAbstractCombinedClocksPair- Type Parameters:
T- type of the field elements- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-