Package org.orekit.time
Class AggregatedClockModel
- java.lang.Object
-
- org.orekit.time.AggregatedClockModel
-
- All Implemented Interfaces:
ClockModel
public class AggregatedClockModel extends Object implements ClockModel
Offset clock model aggregating several other clock models.- Since:
- 12.1
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description AggregatedClockModel(TimeSpanMap<ClockModel> models)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeSpanMap<ClockModel>
getModels()
Get the underlying models.ClockOffset
getOffset(AbsoluteDate date)
Get the clock offset at date.<T extends CalculusFieldElement<T>>
FieldClockOffset<T>getOffset(FieldAbsoluteDate<T> date)
Get the clock offset at date.AbsoluteDate
getValidityEnd()
Get validity end.AbsoluteDate
getValidityStart()
Get validity start.
-
-
-
Constructor Detail
-
AggregatedClockModel
public AggregatedClockModel(TimeSpanMap<ClockModel> models)
Simple constructor.- Parameters:
models
- underlying clock models
-
-
Method Detail
-
getModels
public TimeSpanMap<ClockModel> getModels()
Get the underlying models.- Returns:
- underlying models
-
getValidityStart
public AbsoluteDate getValidityStart()
Get validity start.- Specified by:
getValidityStart
in interfaceClockModel
- Returns:
- model validity start
-
getValidityEnd
public AbsoluteDate getValidityEnd()
Get validity end.- Specified by:
getValidityEnd
in interfaceClockModel
- Returns:
- model validity end
-
getOffset
public ClockOffset getOffset(AbsoluteDate date)
Get the clock offset at date.- Specified by:
getOffset
in 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:
getOffset
in interfaceClockModel
- Type Parameters:
T
- type of the field elements- Parameters:
date
- date at which offset is requested- Returns:
- clock offset at specified date
-
-