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 PatriusStepInterpolator
public AbsoluteDate getInterpolatedDate()
If setInterpolatedDate
has not been called, the date returned is the
same as getCurrentDate
.
getInterpolatedDate
in interface PatriusStepInterpolator
PatriusStepInterpolator.setInterpolatedDate(AbsoluteDate)
,
PatriusStepInterpolator.getInterpolatedState()
public SpacecraftState getInterpolatedState() throws PatriusException
getInterpolatedState
in interface PatriusStepInterpolator
PatriusException
- if state cannot be interpolated or convertedPatriusStepInterpolator.getInterpolatedDate()
,
PatriusStepInterpolator.setInterpolatedDate(AbsoluteDate)
public AbsoluteDate getPreviousDate()
getPreviousDate
in interface PatriusStepInterpolator
public boolean isForward()
isForward
in interface PatriusStepInterpolator
public 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 PatriusStepInterpolator
date
- interpolated date to setPropagationException
- if underlying interpolator cannot handle the datePatriusStepInterpolator.getInterpolatedDate()
,
PatriusStepInterpolator.getInterpolatedState()
public void shift()
storeDate
public void storeDate(AbsoluteDate date) throws PropagationException
date
- current datePropagationException
- if the state cannot be propagated at specified dateCopyright © 2019 CNES. All rights reserved.