public class StelaBasicInterpolator extends Object implements PatriusStepInterpolator
Basic Linear Step Interpolator for StelaAbstractPropagator. Does not interpolate the attitude of the spacecraft at the moment.
Constructor and Description |
---|
StelaBasicInterpolator()
Build a new instance from a basic propagator.
|
Modifier and Type | Method and Description |
---|---|
AbsoluteDate |
getCurrentDate()
Get the current grid date.
|
SpacecraftState |
getInitialState() |
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.
|
double |
linearInterpolation(double linearCoeff,
double before,
double after)
Interpolates lineary
|
void |
setAdditionalStateProviders(List<AdditionalStateProvider> additionalStateProvidersIn)
sets the additionalStateProviders
|
void |
setInterpolatedDate(AbsoluteDate interpolatedDate)
Set the interpolated date.
|
void |
storeSC(SpacecraftState initialStateIn,
SpacecraftState targetState)
Store the current dates and spacecraft states.
|
public StelaBasicInterpolator()
public 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 setAdditionalStateProviders(List<AdditionalStateProvider> additionalStateProvidersIn)
additionalStateProvidersIn
- the list of additional State providerspublic void setInterpolatedDate(AbsoluteDate interpolatedDate) 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
interpolatedDate
- interpolated date to setPropagationException
- if underlying interpolator cannot handle
the datePatriusStepInterpolator.getInterpolatedDate()
,
PatriusStepInterpolator.getInterpolatedState()
public double linearInterpolation(double linearCoeff, double before, double after)
linearCoeff
- the linear coefficientbefore
- the previous stateafter
- the current statepublic void storeSC(SpacecraftState initialStateIn, SpacecraftState targetState) throws PropagationException
initialStateIn
- the initial statetargetState
- the target statePropagationException
- if the state cannot be propagated at specified datepublic SpacecraftState getInitialState()
Copyright © 2018 CNES. All Rights Reserved.