public class BasicStepInterpolator extends Object implements PatriusStepInterpolator
PatriusStepInterpolator interface based
on a Propagator.| Constructor and Description |
|---|
BasicStepInterpolator(Propagator propagatorIn)
Build a new instance from a basic propagator.
|
| Modifier and Type | Method and Description |
|---|---|
AbsoluteDate |
getCurrentDate()
Get the current grid date.
|
AbsoluteDate |
getInterpolatedDate()
Get the interpolated date.
|
SpacecraftState |
getInterpolatedState()
Get the interpolated state.
|
AbsoluteDate |
getPreviousDate()
Get the previous grid date.
|
boolean |
isForward()
Check is integration direction is forward in date.
|
void |
setInterpolatedDate(AbsoluteDate date)
Set the interpolated date.
|
void |
shift()
Shift one step forward.
|
void |
storeDate(AbsoluteDate date)
Store the current step date.
|
public BasicStepInterpolator(Propagator propagatorIn)
propagatorIn - underlying propagator to usepublic AbsoluteDate getCurrentDate()
getCurrentDate in interface PatriusStepInterpolatorpublic AbsoluteDate getInterpolatedDate()
If setInterpolatedDate has not been called, the date returned is the
same as getCurrentDate.
getInterpolatedDate in interface PatriusStepInterpolatorPatriusStepInterpolator.setInterpolatedDate(AbsoluteDate),
PatriusStepInterpolator.getInterpolatedState()public SpacecraftState getInterpolatedState() throws PatriusException
getInterpolatedState in interface PatriusStepInterpolatorPatriusException - if state cannot be interpolated or convertedPatriusStepInterpolator.getInterpolatedDate(),
PatriusStepInterpolator.setInterpolatedDate(AbsoluteDate)public AbsoluteDate getPreviousDate()
getPreviousDate in interface PatriusStepInterpolatorpublic boolean isForward()
isForward in interface PatriusStepInterpolatorpublic void setInterpolatedDate(AbsoluteDate date) throws PropagationException
It is possible to set the interpolation date outside of the current step range, but accuracy will decrease as date is farther.
setInterpolatedDate in interface PatriusStepInterpolatordate - interpolated date to setPropagationException - if underlying interpolator cannot handle the datePatriusStepInterpolator.getInterpolatedDate(),
PatriusStepInterpolator.getInterpolatedState()public void shift()
storeDatepublic void storeDate(AbsoluteDate date) throws PropagationException
date - current datePropagationException - if the state cannot be propagated at specified dateCopyright © 2025 CNES. All rights reserved.