Package org.orekit.time
Class AbstractTimeInterpolator.InterpolationData
java.lang.Object
org.orekit.time.AbstractTimeInterpolator.InterpolationData
- Enclosing class:
AbstractTimeInterpolator<T extends TimeStamped>
Nested class used to store interpolation data.
It makes the interpolator thread safe.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInterpolationData(AbsoluteDate interpolationDate, Collection<T> sample) Constructor (Collection variant).protectedInterpolationData(AbsoluteDate interpolationDate, List<T> sample) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet interpolation date.Get neighbor list.
-
Constructor Details
-
InterpolationData
Constructor (Collection variant).If
sampleis already aList, it is used directly; otherwise it is copied into a newArrayList. Forwards toInterpolationData(AbsoluteDate, List)— see that constructor for the sorted-sample precondition.- Parameters:
interpolationDate- interpolation datesample- time stamped sample (chronologically sorted)
-
InterpolationData
Constructor.Precondition:
samplemust be sorted in chronological order. Passing an unsorted sample yields undefined neighbors and may throwTimeStampedCacheException. Prior implementations silently sorted the input; this is no longer the case.- Parameters:
interpolationDate- interpolation datesample- time stamped sample (chronologically sorted)
-
-
Method Details
-
getInterpolationDate
Get interpolation date.- Returns:
- interpolation date
-
getNeighborList
Get neighbor list.- Returns:
- neighbor list
-