Class FieldTransformGenerator<T extends org.hipparchus.RealFieldElement<T>>
- java.lang.Object
-
- org.orekit.frames.FieldTransformGenerator<T>
-
- All Implemented Interfaces:
TimeStampedGenerator<FieldTransform<T>>
public class FieldTransformGenerator<T extends org.hipparchus.RealFieldElement<T>> extends Object implements TimeStampedGenerator<FieldTransform<T>>
Generator to use field transforms inGenericTimeStampedCache
.- Since:
- 9.0
- Author:
- Luc Maisonobe
- See Also:
GenericTimeStampedCache
-
-
Constructor Summary
Constructors Constructor Description FieldTransformGenerator(org.hipparchus.Field<T> field, int neighborsSize, TransformProvider provider, double step)
simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FieldTransform<T>>
generate(AbsoluteDate existingDate, AbsoluteDate date)
Generate a chronologically sorted list of entries to be cached.
-
-
-
Constructor Detail
-
FieldTransformGenerator
public FieldTransformGenerator(org.hipparchus.Field<T> field, int neighborsSize, TransformProvider provider, double step)
simple constructor.- Parameters:
field
- field to which the elements belongneighborsSize
- number of neighborsprovider
- underlying providerstep
- step size
-
-
Method Detail
-
generate
public List<FieldTransform<T>> generate(AbsoluteDate existingDate, AbsoluteDate date)
Generate a chronologically sorted list of entries to be cached.If
existingDate
is earlier thandate
, the range covered by generated entries must cover at least fromexistingDate
(excluded) todate
(included). IfexistingDate
is later thandate
, the range covered by generated entries must cover at least fromdate
(included) toexistingDate
(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 at
existingDate
), these extra entries will be silently ignored by the cache.Non-coverage of the minimum range may lead to a loss of data, as the gap will not be filled by the
GenericTimeStampedCache
in subsequent calls.The generated entries must be chronologically sorted.
- Specified by:
generate
in interfaceTimeStampedGenerator<T extends org.hipparchus.RealFieldElement<T>>
- Parameters:
existingDate
- date of the closest already existing entry (may be null)date
- date that must be covered by the range of the generated array- Returns:
- chronologically sorted list of generated entries
-
-