Package org.orekit.propagation.sampling
Class PythonOrekitStepInterpolator
- java.lang.Object
-
- org.orekit.propagation.sampling.PythonOrekitStepInterpolator
-
- All Implemented Interfaces:
OrekitStepInterpolator
,PVCoordinatesProvider
public class PythonOrekitStepInterpolator extends Object implements OrekitStepInterpolator
-
-
Constructor Summary
Constructors Constructor Description PythonOrekitStepInterpolator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Part of JCC Python interface to objectSpacecraftState
getCurrentState()
Get the state at current grid point date.SpacecraftState
getInterpolatedState(AbsoluteDate date)
Get the state at interpolated date.SpacecraftState
getPreviousState()
Get the state at previous grid point date.boolean
isCurrentStateInterpolated()
Determines if thecurrent state
is computed directly by the integrator, or if it is calculated usinginterpolation
.boolean
isForward()
Check is integration direction is forward in date.boolean
isPreviousStateInterpolated()
Determines if theprevious state
is computed directly by the integrator, or if it is calculated usinginterpolation
.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to objectOrekitStepInterpolator
restrictStep(SpacecraftState newPreviousState, SpacecraftState newCurrentState)
Create a new restricted version of the instance.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.sampling.OrekitStepInterpolator
getPVCoordinates
-
Methods inherited from interface org.orekit.utils.PVCoordinatesProvider
getPosition
-
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
getPreviousState
public SpacecraftState getPreviousState()
Get the state at previous grid point date. Extension point for Python.- Specified by:
getPreviousState
in interfaceOrekitStepInterpolator
- Returns:
- state at previous grid point date
-
isPreviousStateInterpolated
public boolean isPreviousStateInterpolated()
Determines if theprevious state
is computed directly by the integrator, or if it is calculated usinginterpolation
. Extension point for Python.Typically the previous state is directly computed by the integrator, but when events are detected the steps are shortened so that events occur on step boundaries which means the previous state may be computed by the interpolator.
- Specified by:
isPreviousStateInterpolated
in interfaceOrekitStepInterpolator
- Returns:
true
if the previous state was calculated by the interpolator and false if it was computed directly by the integrator.
-
getCurrentState
public SpacecraftState getCurrentState()
Get the state at current grid point date. Extension point for Python.- Specified by:
getCurrentState
in interfaceOrekitStepInterpolator
- Returns:
- state at current grid point date
-
isCurrentStateInterpolated
public boolean isCurrentStateInterpolated()
Determines if thecurrent state
is computed directly by the integrator, or if it is calculated usinginterpolation
. Extension point for Python.Typically the current state is directly computed by the integrator, but when events are detected the steps are shortened so that events occur on step boundaries which means the current state may be computed by the interpolator.
- Specified by:
isCurrentStateInterpolated
in interfaceOrekitStepInterpolator
- Returns:
true
if the current state was calculated by the interpolator and false if it was computed directly by the integrator.
-
getInterpolatedState
public SpacecraftState getInterpolatedState(AbsoluteDate date)
Get the state at interpolated date.- Specified by:
getInterpolatedState
in interfaceOrekitStepInterpolator
- Parameters:
date
- date of the interpolated state- Returns:
- state at interpolated date
-
isForward
public boolean isForward()
Check is integration direction is forward in date.- Specified by:
isForward
in interfaceOrekitStepInterpolator
- Returns:
- true if integration is forward in date
-
restrictStep
public OrekitStepInterpolator restrictStep(SpacecraftState newPreviousState, SpacecraftState newCurrentState)
Create a new restricted version of the instance.The instance is not changed at all.
- Specified by:
restrictStep
in interfaceOrekitStepInterpolator
- Parameters:
newPreviousState
- start of the restricted stepnewCurrentState
- end of the restricted step- Returns:
- restricted version of the instance
- Since:
- 9.0
- See Also:
getPreviousState()
,getCurrentState()
-
-