Class AbstractTimeInterpolator.InterpolationData

java.lang.Object
org.orekit.time.AbstractTimeInterpolator.InterpolationData
Enclosing class:
AbstractTimeInterpolator<T extends TimeStamped>

public class AbstractTimeInterpolator.InterpolationData extends Object
Nested class used to store interpolation data.

It makes the interpolator thread safe.

  • Constructor Details

    • InterpolationData

      protected InterpolationData(AbsoluteDate interpolationDate, Collection<T> sample)
      Constructor (Collection variant).

      If sample is already a List, it is used directly; otherwise it is copied into a new ArrayList. Forwards to InterpolationData(AbsoluteDate, List) — see that constructor for the sorted-sample precondition.

      Parameters:
      interpolationDate - interpolation date
      sample - time stamped sample (chronologically sorted)
    • InterpolationData

      protected InterpolationData(AbsoluteDate interpolationDate, List<T> sample)
      Constructor.

      Precondition: sample must be sorted in chronological order. Passing an unsorted sample yields undefined neighbors and may throw TimeStampedCacheException. Prior implementations silently sorted the input; this is no longer the case.

      Parameters:
      interpolationDate - interpolation date
      sample - time stamped sample (chronologically sorted)
  • Method Details

    • getInterpolationDate

      public AbsoluteDate getInterpolationDate()
      Get interpolation date.
      Returns:
      interpolation date
    • getNeighborList

      public List<T> getNeighborList()
      Get neighbor list.
      Returns:
      neighbor list