public class TidalCorrectionGenerator extends Object implements TimeStampedGenerator<TidalCorrection>
TidalCorrectionCache
Modifier | Constructor and Description |
---|---|
protected |
TidalCorrectionGenerator(TidalCorrectionModel tcModel,
int interpolationPointsIn,
double spanIn)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
List<TidalCorrection> |
generate(TidalCorrection existingData,
AbsoluteDate date)
Generate a chronologically sorted list of entries to be cached.
|
protected TidalCorrectionGenerator(TidalCorrectionModel tcModel, int interpolationPointsIn, double spanIn)
interpolationPointsIn
- number of reference points to use for the interpolationspanIn
- time span between reference pointstcModel
- Tidal corrections model to usepublic List<TidalCorrection> generate(TidalCorrection existingData, AbsoluteDate date) throws TimeStampedCacheException
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<TidalCorrection>
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()
)TimeStampedCacheException
- if time stamped data cannot be generatedCopyright © 2019 CNES. All rights reserved.