public class CIPCoordinatesGenerator extends Object implements TimeStampedGenerator<CIPCoordinates>
CIPCoordinates
to be used independently or within a
TimeStampedCache
. The method applied is that of the IAU-2000.PrecessionNutationCache
Modifier | Constructor and Description |
---|---|
protected |
CIPCoordinatesGenerator(PrecessionNutationModel pnModel,
int interpolationPointsIn,
double spanIn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<CIPCoordinates> |
generate(CIPCoordinates existingData,
AbsoluteDate date)
Generate a chronologically sorted list of entries to be cached.
|
protected CIPCoordinatesGenerator(PrecessionNutationModel pnModel, int interpolationPointsIn, double spanIn)
pnModel
- Precession Nutation model to useinterpolationPointsIn
- indicates how many points to generate when the generate(CIPCoordinates, AbsoluteDate)
method
is called upon by the TimeStampedCache
.spanIn
- Time span between generated reference pointspublic List<CIPCoordinates> generate(CIPCoordinates existingData, AbsoluteDate date)
If existing
is earlier than date
, the range covered by generated entries should cover at least
from existing
(excluded) to date
(included). If existing
is later than date
, the
range covered by generated entries should cover at least from date
(included) to existing
(excluded).
The generated entries may cover a range larger than the minimum specified above if the generator prefers to
generate large chunks of data at once. It may generate again entries already generated by an earlier call
(typically existing
), these extra entries will be silently ignored by the cache.
The generated entries must be chronologically sorted.
generate
in interface TimeStampedGenerator<CIPCoordinates>
existingData
- closest already existing entry (may be null)date
- date that must be covered by the range of the generated array
(guaranteed to lie between TimeStampedCache.getEarliest()
and
TimeStampedCache.getLatest()
)Copyright © 2019 CNES. All Rights Reserved.