org.orekit.attitudes
Class TabulatedAttitude

java.lang.Object
  extended by org.orekit.attitudes.TabulatedAttitude
All Implemented Interfaces:
Serializable, AttitudeLeg, AttitudeProvider

public final class TabulatedAttitude
extends Object
implements AttitudeLeg

This class implements the tabulated attitude leg.

Since:
1.1
Version:
$Id: TabulatedAttitude.java 16776 2016-10-10 13:25:34Z bignon $
Author:
Thomas Trapier
See Also:
AttitudeLeg, Serialized Form
Concurrency :
immutable

Field Summary
static int DEFAULT_INTERP_ORDER
          Default number of points used for interpolation.
 
Constructor Summary
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
 
Method Summary
 Attitude getAttitude(Orbit orbit)
          Compute the attitude corresponding to an orbital state.
 Attitude getAttitude(PVCoordinatesProvider pvProvider, AbsoluteDate date, Frame inFrame)
          Compute the attitude corresponding to an orbital state.
 List<Attitude> getAttitudes()
          Get the non-interpolated and rightly ordered attitudes.
 double[] getDurations()
          Getter for durations.
 AbsoluteDateInterval getTimeInterval()
          Return the time interval of validity
 void setSpinDerivativesComputation(boolean computeSpinDerivatives)
          Method to activate spin derivative computation.
 TabulatedAttitude setTimeInterval(AbsoluteDateInterval interval)
          Return a new law with the specified interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INTERP_ORDER

public static final int DEFAULT_INTERP_ORDER
Default number of points used for interpolation.

See Also:
Constant Field Values
Constructor Detail

TabulatedAttitude

public TabulatedAttitude(List<Attitude> inAttitudes)
                  throws OrekitException
Constructor with default number N of points used for interpolation.

Parameters:
inAttitudes - the list of attitudes. WARNING : these attitudes must be ordered.
Throws:
OrekitException - if the number of point is too small for interpolating

TabulatedAttitude

public TabulatedAttitude(List<Attitude> inAttitudes,
                         int nbInterpolationPoints)
                  throws OrekitException
Constructor with number of points used for interpolation

Parameters:
inAttitudes - the list of attitudes. WARNING : these attitudes must be ordered.
nbInterpolationPoints - number of points used for interpolation
Throws:
OrekitException - if the number of point is too small for interpolating
Method Detail

getTimeInterval

public AbsoluteDateInterval getTimeInterval()
Return the time interval of validity

Specified by:
getTimeInterval in interface AttitudeLeg
Returns:
time interval of validity

getAttitude

public Attitude getAttitude(PVCoordinatesProvider pvProvider,
                            AbsoluteDate date,
                            Frame inFrame)
                     throws OrekitException
Compute the attitude corresponding to an orbital state.

Specified by:
getAttitude in interface AttitudeProvider
Parameters:
pvProvider - local position-velocity provider around current date
date - current date
inFrame - reference frame from which attitude is computed
Returns:
attitude attitude on the specified date and position-velocity state
Throws:
OrekitException - if attitude cannot be computed

setTimeInterval

public TabulatedAttitude setTimeInterval(AbsoluteDateInterval interval)
                                  throws OrekitException
Return a new law with the specified interval.

Parameters:
interval - new interval of validity
Returns:
new tabulated attitude law
Throws:
OrekitException - if a problem occurs during frames transformation in new first and last attitudes computations

getAttitudes

public List<Attitude> getAttitudes()
Get the non-interpolated and rightly ordered attitudes.

Returns:
the list of attitudes

getDurations

public double[] getDurations()
Getter for durations.

Returns:
the durations

getAttitude

public Attitude getAttitude(Orbit orbit)
                     throws OrekitException
Compute the attitude corresponding to an orbital state.

Specified by:
getAttitude in interface AttitudeProvider
Parameters:
orbit - current orbit
Returns:
attitude attitude on the current orbit
Throws:
OrekitException - if attitude cannot be computed

setSpinDerivativesComputation

public void setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.

Specified by:
setSpinDerivativesComputation in interface AttitudeProvider
Parameters:
computeSpinDerivatives - true if spin derivatives should be computed


Copyright © 2016 CNES. All Rights Reserved.