public class TabulatedAttitude extends Object implements AttitudeLeg
This class implements the tabulated attitude leg.
AttitudeLeg
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INTERP_ORDER
Default number of points used for interpolation.
|
LEG_NATURE
Constructor and Description |
---|
TabulatedAttitude(List<Attitude> inAttitudes)
Constructor with default number N of points used for interpolation.
|
TabulatedAttitude(List<Attitude> inAttitudes,
int nbInterpolationPoints)
Constructor with number of points used for interpolation
|
TabulatedAttitude(List<Attitude> inAttitudes,
int nbInterpolationPoints,
String natureIn)
Constructor with number of points used for interpolation
|
TabulatedAttitude(List<Attitude> inAttitudes,
String natureIn)
Constructor with default number N of points used for interpolation.
|
Modifier and Type | Method and Description |
---|---|
TabulatedAttitude |
copy(AbsoluteDateInterval newIntervalOfValidity)
Creates a new leg from this one.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProvider,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
List<Attitude> |
getAttitudes()
Get the non-interpolated and rightly ordered attitudes.
|
double[] |
getDurations()
Getter for durations.
|
String |
getNature()
Returns the nature of the leg.
|
AbsoluteDateInterval |
getTimeInterval()
Returns the time interval of the leg.
|
boolean |
isSpinDerivativesComputation()
Returns spin derivatives computation flag.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
TabulatedAttitude |
setTimeInterval(AbsoluteDateInterval interval)
Return a new law with the specified interval.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD
getDate, getEnd, toPrettyString
getAttitude
public static final int DEFAULT_INTERP_ORDER
public TabulatedAttitude(List<Attitude> inAttitudes) throws PatriusException
inAttitudes
- the list of attitudes. WARNING : these attitudes must be ordered.PatriusException
- if the number of point is too small for interpolatingpublic TabulatedAttitude(List<Attitude> inAttitudes, int nbInterpolationPoints) throws PatriusException
inAttitudes
- the list of attitudes. WARNING : these attitudes must be ordered.nbInterpolationPoints
- number of points used for interpolationPatriusException
- if the number of point is too small for interpolatingpublic TabulatedAttitude(List<Attitude> inAttitudes, String natureIn) throws PatriusException
inAttitudes
- the list of attitudes. WARNING : these attitudes must be ordered.natureIn
- leg naturePatriusException
- if the number of point is too small for interpolatingpublic TabulatedAttitude(List<Attitude> inAttitudes, int nbInterpolationPoints, String natureIn) throws PatriusException
inAttitudes
- the list of attitudes. WARNING : these attitudes must be ordered.nbInterpolationPoints
- number of points used for interpolationnatureIn
- leg naturePatriusException
- if the number of point is too small for interpolatingpublic AbsoluteDateInterval getTimeInterval()
getTimeInterval
in interface Leg
public Attitude getAttitude(PVCoordinatesProvider pvProvider, AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface AttitudeProvider
pvProvider
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedPatriusException
- if attitude cannot be computed for provided datepublic TabulatedAttitude setTimeInterval(AbsoluteDateInterval interval)
interval
- new interval of validitypublic List<Attitude> getAttitudes()
public double[] getDurations()
public void setSpinDerivativesComputation(boolean computeSpinDerivatives)
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedpublic String getNature()
public TabulatedAttitude copy(AbsoluteDateInterval newIntervalOfValidity)
public boolean isSpinDerivativesComputation()
Copyright © 2021 CNES. All rights reserved.