Package org.orekit.propagation.sampling
Interface OrekitStepInterpolator
-
- All Superinterfaces:
PVCoordinatesProvider
public interface OrekitStepInterpolator extends PVCoordinatesProvider
This interface is a space-dynamics aware step interpolator.It mirrors the
ODEStateInterpolator
interface from Hipparchus but provides a space-dynamics interface to the methods.- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SpacecraftState
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.default TimeStampedPVCoordinates
getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
of the body in the selected frame.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
.OrekitStepInterpolator
restrictStep(SpacecraftState newPreviousState, SpacecraftState newCurrentState)
Create a new restricted version of the instance.-
Methods inherited from interface org.orekit.utils.PVCoordinatesProvider
getPosition
-
-
-
-
Method Detail
-
getPreviousState
SpacecraftState getPreviousState()
Get the state at previous grid point date.- Returns:
- state at previous grid point date
-
isPreviousStateInterpolated
boolean isPreviousStateInterpolated()
Determines if theprevious state
is computed directly by the integrator, or if it is calculated usinginterpolation
.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.
- Returns:
true
if the previous state was calculated by the interpolator and false if it was computed directly by the integrator.
-
getCurrentState
SpacecraftState getCurrentState()
Get the state at current grid point date.- Returns:
- state at current grid point date
-
isCurrentStateInterpolated
boolean isCurrentStateInterpolated()
Determines if thecurrent state
is computed directly by the integrator, or if it is calculated usinginterpolation
.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.
- Returns:
true
if the current state was calculated by the interpolator and false if it was computed directly by the integrator.
-
getInterpolatedState
SpacecraftState getInterpolatedState(AbsoluteDate date)
Get the state at interpolated date.- Parameters:
date
- date of the interpolated state- Returns:
- state at interpolated date
-
isForward
boolean isForward()
Check is integration direction is forward in date.- Returns:
- true if integration is forward in date
-
restrictStep
OrekitStepInterpolator restrictStep(SpacecraftState newPreviousState, SpacecraftState newCurrentState)
Create a new restricted version of the instance.The instance is not changed at all.
- 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()
-
getPVCoordinates
default TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfacePVCoordinatesProvider
- Parameters:
date
- current dateframe
- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
- Since:
- 12.0
-
-