Package org.orekit.attitudes
Class AggregateBoundedAttitudeProvider
- java.lang.Object
-
- org.orekit.attitudes.AggregateBoundedAttitudeProvider
-
- All Implemented Interfaces:
AttitudeProvider
,BoundedAttitudeProvider
public class AggregateBoundedAttitudeProvider extends Object implements BoundedAttitudeProvider
ABoundedAttitudeProvider
that covers a larger time span from several constituent attitude providers that cover shorter time spans.- Since:
- 10.3
- Author:
- Bryan Cazabonne
-
-
Constructor Summary
Constructors Constructor Description AggregateBoundedAttitudeProvider(Collection<? extends BoundedAttitudeProvider> providers)
Constructor.
-
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.<T extends CalculusFieldElement<T>>
FieldRotation<T>getAttitudeRotation(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude-related rotation corresponding to an orbital state.Rotation
getAttitudeRotation(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude-related rotation corresponding to an orbital state.AbsoluteDate
getMaxDate()
Get the last date of the range.AbsoluteDate
getMinDate()
Get the first date of the range.
-
-
-
Constructor Detail
-
AggregateBoundedAttitudeProvider
public AggregateBoundedAttitudeProvider(Collection<? extends BoundedAttitudeProvider> providers)
Constructor.- Parameters:
providers
- attitude providers that provide the backing data for this instance. There must be at least one attitude provider in the collection. If there are gaps between theBoundedAttitudeProvider.getMaxDate()
of one attitude provider and theBoundedAttitudeProvider.getMinDate()
of the next attitude provider an exception may be thrown by any method of this class at any time. If there are overlaps between the theBoundedAttitudeProvider.getMaxDate()
of one attitude provider and theBoundedAttitudeProvider.getMinDate()
of the next attitude provider then the attitude provider with the latestBoundedAttitudeProvider.getMinDate()
is used.
-
-
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
-
getAttitudeRotation
public Rotation getAttitudeRotation(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude-related rotation corresponding to an orbital state.- Specified by:
getAttitudeRotation
in interfaceAttitudeProvider
- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude-related rotation on the specified date and position-velocity state
-
getAttitudeRotation
public <T extends CalculusFieldElement<T>> FieldRotation<T> getAttitudeRotation(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude-related rotation corresponding to an orbital state.- Specified by:
getAttitudeRotation
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:
- rotation on the specified date and position-velocity state
-
getMinDate
public AbsoluteDate getMinDate()
Description copied from interface:BoundedAttitudeProvider
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
-
-