Package org.orekit.time
Class PythonTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped>
- java.lang.Object
-
- org.orekit.time.PythonTimeInterpolator<T>
-
- All Implemented Interfaces:
TimeInterpolator<T>
public class PythonTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped> extends Object implements TimeInterpolator<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected long
pythonObject
Part of JCC Python interface to object
-
Constructor Summary
Constructors Constructor Description PythonTimeInterpolator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
double
getExtrapolationThreshold()
Get the extrapolation threshold.int
getNbInterpolationPoints()
Get the number of interpolation points.List<TimeInterpolator<? extends TimeStamped>>
getSubInterpolators()
Get all lowest level interpolators implemented by this instance, otherwise return a list with this instance only.T
interpolate(AbsoluteDate interpolationDate, Collection<T> sample)
Get an interpolated instance.T
interpolate(AbsoluteDate date, Stream<T> sample)
Get an interpolated instance.void
pythonDecRef()
long
pythonExtension()
void
pythonExtension(long pythonObject)
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
-
pythonExtension
public long pythonExtension()
-
finalize
public void finalize() throws Throwable
-
pythonDecRef
public void pythonDecRef()
-
interpolate
public T interpolate(AbsoluteDate date, Stream<T> sample)
Get an interpolated instance.- Specified by:
interpolate
in interfaceTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped>
- Parameters:
date
- interpolation datesample
- time stamped sample- Returns:
- a new instance, interpolated at specified date
- See Also:
TimeStamped
,AbsoluteDate
-
interpolate
public T interpolate(AbsoluteDate interpolationDate, Collection<T> sample)
Get an interpolated instance.- Specified by:
interpolate
in interfaceTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped>
- Parameters:
interpolationDate
- interpolation datesample
- time stamped sample- Returns:
- a new instance, interpolated at specified date
-
getSubInterpolators
public List<TimeInterpolator<? extends TimeStamped>> getSubInterpolators()
Get all lowest level interpolators implemented by this instance, otherwise return a list with this instance only.An example would be the spacecraft state interpolator which can use different interpolators for each of its attributes (orbit, absolute position-velocity-acceleration coordinates, mass...). In this case, it would return the list of all of these interpolators (or possibly all of their sub-interpolators if they were to use multiple interpolators themselves).
- Specified by:
getSubInterpolators
in interfaceTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped>
- Returns:
- list of interpolators
-
getNbInterpolationPoints
public int getNbInterpolationPoints()
Get the number of interpolation points.- Specified by:
getNbInterpolationPoints
in interfaceTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped>
- Returns:
- get the number of interpolation points
-
getExtrapolationThreshold
public double getExtrapolationThreshold()
Get the extrapolation threshold.- Specified by:
getExtrapolationThreshold
in interfaceTimeInterpolator<T extends TimeInterpolator<T> & TimeStamped>
- Returns:
- get the extrapolation threshold
-
-