Package org.orekit.attitudes
Class TabulatedProvider
- java.lang.Object
-
- org.orekit.attitudes.TabulatedProvider
-
- All Implemented Interfaces:
AttitudeProvider
,BoundedAttitudeProvider
,EventDetectorsProvider
public class TabulatedProvider extends Object implements BoundedAttitudeProvider
This class handles an attitude provider interpolating from a predefined table.Instances of this class are guaranteed to be immutable.
- Since:
- 6.1
- Author:
- Luc Maisonobe
- See Also:
TabulatedLofOffset
-
-
Field Summary
-
Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY
-
-
Constructor Summary
Constructors Constructor Description TabulatedProvider(List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter, AbsoluteDate minDate, AbsoluteDate maxDate, AttitudeBuilder builder)
Creates new instance.TabulatedProvider(Frame referenceFrame, List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CalculusFieldElement<T>>
FieldAttitude<T>getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.Attitude
getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.AbsoluteDate
getMaxDate()
Get the last date of the range.AbsoluteDate
getMinDate()
Get the first date of the range.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.attitudes.AttitudeProvider
getAttitudeRotation, getAttitudeRotation, getEventDetectors, getFieldEventDetectors
-
Methods inherited from interface org.orekit.propagation.events.EventDetectorsProvider
getEventDetectors, getFieldEventDetectors
-
-
-
-
Constructor Detail
-
TabulatedProvider
public TabulatedProvider(Frame referenceFrame, List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.This constructor uses the first and last point samples as the min and max dates.
- Parameters:
referenceFrame
- reference frame for tabulated attitudestable
- tabulated attitudesn
- number of attitude to use for interpolationfilter
- filter for derivatives from the sample to use in interpolation- See Also:
TabulatedProvider(List, int, AngularDerivativesFilter, AbsoluteDate, AbsoluteDate, AttitudeBuilder)
-
TabulatedProvider
public TabulatedProvider(List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter, AbsoluteDate minDate, AbsoluteDate maxDate, AttitudeBuilder builder)
Creates new instance.- Parameters:
table
- tabulated attitudesn
- number of attitude to use for interpolationfilter
- filter for derivatives from the sample to use in interpolationminDate
- min date to usemaxDate
- max date to usebuilder
- builder to use- Since:
- 11.0
-
-
Method Detail
-
getAttitude
public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude on the specified date and position-velocity state
-
getAttitude
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Type Parameters:
T
- type of the field elements- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude on the specified date and position-velocity state
-
getMinDate
public AbsoluteDate getMinDate()
Get the first date of the range.- Specified by:
getMinDate
in interfaceBoundedAttitudeProvider
- Returns:
- the first date of the range
-
getMaxDate
public AbsoluteDate getMaxDate()
Get the last date of the range.- Specified by:
getMaxDate
in interfaceBoundedAttitudeProvider
- Returns:
- the last date of the range
-
-