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.protected <T extends CalculusFieldElement<T>>
FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.getFieldModel(int freeParameters, Map<String, Integer> indices, AbsoluteDate date) Convert to field model.Methods inherited from class org.orekit.time.clocks.AbstractCombinedClocksPair
getFieldOffset, 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, getAcceptedTermName, getBiasDriver, getOffsetValue, getParameterDriverTerm, getRateDriverMethods inherited from interface org.orekit.utils.ParameterDriversProvider
getNbParametersDriversValue, getParameterDriver, getParameterDriverWithSubstring, getParameters, getParameters, getParameters, getParameters, getParametersAllValues, getParametersAllValues, 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
-
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
-
getFieldModel
public FieldClockModel<Gradient> getFieldModel(int freeParameters, Map<String, Integer> indices, AbsoluteDate date) Description copied from interface:ClockModelConvert to field 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 namedate- date at which model must be valid- Returns:
- converted clock model
-