public interface OrekitStepInterpolator
It mirrors the ODEStateInterpolator
interface from Hipparchus but
provides a space-dynamics interface to the methods.
Modifier and Type | Method and 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.
|
boolean |
isCurrentStateInterpolated()
Determines if the
current state is computed directly by
the integrator, or if it is calculated using interpolation . |
boolean |
isForward()
Check is integration direction is forward in date.
|
boolean |
isPreviousStateInterpolated()
Determines if the
previous state is computed directly
by the integrator, or if it is calculated using interpolation . |
OrekitStepInterpolator |
restrictStep(SpacecraftState newPreviousState,
SpacecraftState newCurrentState)
Create a new restricted version of the instance.
|
SpacecraftState getPreviousState() throws OrekitException
OrekitException
- if state cannot be retrievedboolean isPreviousStateInterpolated()
previous state
is computed directly
by the integrator, or if it is calculated using interpolation
.
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.
true
if the previous state was calculated by the interpolator and
false if it was computed directly by the integrator.SpacecraftState getCurrentState() throws OrekitException
OrekitException
- if state cannot be retrievedboolean isCurrentStateInterpolated()
current state
is computed directly by
the integrator, or if it is calculated using interpolation
.
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.
true
if the current state was calculated by the interpolator and
false if it was computed directly by the integrator.SpacecraftState getInterpolatedState(AbsoluteDate date) throws OrekitException
date
- date of the interpolated stateOrekitException
- if underlying interpolator cannot handle
the dateboolean isForward()
OrekitStepInterpolator restrictStep(SpacecraftState newPreviousState, SpacecraftState newCurrentState) throws OrekitException
The instance is not changed at all.
newPreviousState
- start of the restricted stepnewCurrentState
- end of the restricted stepOrekitException
- if state cannot be convertedgetPreviousState()
,
getCurrentState()
Copyright © 2002-2017 CS Systèmes d'information. All rights reserved.