Package org.orekit.time.clocks
Class ClocksSum
java.lang.Object
org.orekit.time.clocks.AbstractCombinedClocksPair
org.orekit.time.clocks.ClocksSum
- All Implemented Interfaces:
ClockModel,ParameterDriversProvider
Clock model computing the sum 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.<T extends CalculusFieldElement<T>>
FieldClocksSum<T> toField(DoubleFunction<T> converter) Convert to field model.toGradient(int freeParameters, Map<String, Integer> indices) Convert to gradient model.Methods inherited from class org.orekit.time.clocks.AbstractCombinedClocksPair
getClock1, getClock2, getOffset, getParametersDrivers, getValidityEnd, getValidityStartMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.time.clocks.ClockModel
getAccelerationDriver, getAcceptedTermSuffix, getBiasDriver, getOffsetValue, getParameterDriverTerm, getRateDriverMethods inherited from interface org.orekit.utils.drivers.ParameterDriversProvider
getParameterDriver, getParameterDriverWithSubstring, getParameters, getParameters, isSupported
-
Constructor Details
-
ClocksSum
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
-
toField
Convert to field model.- Type Parameters:
T- type of the field elements- Parameters:
converter- converter to field elements- Returns:
- field version of the instance
-
toGradient
Convert to gradient model.- Parameters:
freeParameters- total number of free parameters in the gradientindices- indices of the differentiation parameters in derivatives computations, must be span name and not driver name- Returns:
- converted clock model
-