Package org.orekit.time.clocks
Class AbstractCombinedClocksPair
- java.lang.Object
-
- org.orekit.time.clocks.AbstractCombinedClocksPair
-
- All Implemented Interfaces:
ClockModel
- Direct Known Subclasses:
ClocksDifference,ClocksSum
public abstract class AbstractCombinedClocksPair extends Object implements ClockModel
Clock model combining two underlying models.- Since:
- 14.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCombinedClocksPair(ClockModel clock1, ClockModel clock2)Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ClockOffsetcombine(ClockOffset offset1, ClockOffset offset2)Combine two offsets.protected abstract <T extends CalculusFieldElement<T>>
FieldClockOffset<T>combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2)Combine two offsets.ClockOffsetgetOffset(AbsoluteDate date)Get the clock offset at date.<T extends CalculusFieldElement<T>>
FieldClockOffset<T>getOffset(FieldAbsoluteDate<T> date)Get the clock offset at date.AbsoluteDategetValidityEnd()Get validity end.AbsoluteDategetValidityStart()Get validity start.
-
-
-
Constructor Detail
-
AbstractCombinedClocksPair
protected AbstractCombinedClocksPair(ClockModel clock1, ClockModel clock2)
Simple constructor.- Parameters:
clock1- first underlying clockclock2- second underlying clock
-
-
Method Detail
-
getValidityStart
public AbsoluteDate getValidityStart()
Get validity start.- Specified by:
getValidityStartin interfaceClockModel- Returns:
- model validity start
-
getValidityEnd
public AbsoluteDate getValidityEnd()
Get validity end.- Specified by:
getValidityEndin interfaceClockModel- Returns:
- model validity end
-
getOffset
public ClockOffset getOffset(AbsoluteDate date)
Get the clock offset at date.- Specified by:
getOffsetin interfaceClockModel- Parameters:
date- date at which offset is requested- Returns:
- clock offset at specified date
-
getOffset
public <T extends CalculusFieldElement<T>> FieldClockOffset<T> getOffset(FieldAbsoluteDate<T> date)
Get the clock offset at date.- Specified by:
getOffsetin interfaceClockModel- Type Parameters:
T- type of the field elements- Parameters:
date- date at which offset is requested- Returns:
- clock offset at specified date
-
combine
protected abstract ClockOffset combine(ClockOffset offset1, ClockOffset offset2)
Combine two offsets.- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-
combine
protected abstract <T extends CalculusFieldElement<T>> FieldClockOffset<T> combine(FieldClockOffset<T> offset1, FieldClockOffset<T> offset2)
Combine two offsets.- Type Parameters:
T- type of the field elements- Parameters:
offset1- first offsetoffset2- second offset- Returns:
- combined offset
-
-