Package org.orekit.time.clocks
Class AbstractCombinedFieldClocksPair<T extends CalculusFieldElement<T>>
java.lang.Object
org.orekit.time.clocks.AbstractCombinedFieldClocksPair<T>
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldClockModel<T>
- Direct Known Subclasses:
FieldClocksDifference,FieldClocksSum
public abstract class AbstractCombinedFieldClocksPair<T extends CalculusFieldElement<T>>
extends Object
implements FieldClockModel<T>
Clock model combining two underlying models.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCombinedFieldClocksPair(FieldClockModel<T> clock1, FieldClockModel<T> clock2) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.Get the first underlying clock.Get the second underlying clock.getOffset(FieldAbsoluteDate<T> date) The field clock offset at a given time.Get validity end.Get validity start.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.time.clocks.FieldClockModel
getOffsetValue, toNonField
-
Constructor Details
-
AbstractCombinedFieldClocksPair
Simple constructor.- Parameters:
clock1- first underlying clockclock2- second underlying clock
-
-
Method Details
-
getClock1
Get the first underlying clock.- Returns:
- first underlying clock
-
getClock2
Get the second underlying clock.- Returns:
- second underlying clock
-
getValidityStart
Get validity start.- Specified by:
getValidityStartin interfaceFieldClockModel<T extends CalculusFieldElement<T>>- Returns:
- model validity start
-
getValidityEnd
Get validity end.- Specified by:
getValidityEndin interfaceFieldClockModel<T extends CalculusFieldElement<T>>- Returns:
- model validity end
-
getOffset
The field clock offset at a given time.- Specified by:
getOffsetin interfaceFieldClockModel<T extends CalculusFieldElement<T>>- Parameters:
date- date at which offset is requested- Returns:
- the field clock offset
-
combine
protected abstract FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2) Combine two offsets.- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-