Package org.orekit.time.clocks
Class ClocksSum
- java.lang.Object
-
- org.orekit.time.clocks.AbstractCombinedClocksPair
-
- org.orekit.time.clocks.ClocksSum
-
- All Implemented Interfaces:
ClockModel
public class ClocksSum extends AbstractCombinedClocksPair
Clock model computing the sum of two underlying models.- Since:
- 14.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description ClocksSum(ClockModel clock1, ClockModel clock2)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
ClocksSum
public ClocksSum(ClockModel clock1, ClockModel clock2)
Simple constructor.The combined clock is
clock1 + clock2- Parameters:
clock1- first underlying clockclock2- second underlying clock
-
-
Method Detail
-
combine
protected ClockOffset combine(ClockOffset offset1, ClockOffset offset2)
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
-
-