public class AggregateBoundedAttitudeProvider extends Object implements BoundedAttitudeProvider
BoundedAttitudeProvider
that covers a larger time span from several constituent
attitude providers that cover shorter time spans.Constructor and Description |
---|
AggregateBoundedAttitudeProvider(Collection<? extends BoundedAttitudeProvider> providers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends CalculusFieldElement<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.
|
public AggregateBoundedAttitudeProvider(Collection<? extends BoundedAttitudeProvider> providers)
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 the BoundedAttitudeProvider.getMaxDate()
of one attitude provider and the BoundedAttitudeProvider.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 the BoundedAttitudeProvider.getMaxDate()
of one attitude provider and the BoundedAttitudeProvider.getMinDate()
of the next attitude provider then the
attitude provider with the latest BoundedAttitudeProvider.getMinDate()
is used.public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
getAttitude
in interface AttitudeProvider
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedpublic <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
getAttitude
in interface AttitudeProvider
T
- type of the field elementspvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedpublic AbsoluteDate getMinDate()
getMinDate
in interface BoundedAttitudeProvider
public AbsoluteDate getMaxDate()
getMaxDate
in interface BoundedAttitudeProvider
Copyright © 2002-2022 CS GROUP. All rights reserved.