public final class AttitudeLegsSequence extends AbstractLegsSequence<AttitudeLeg> implements AttitudeLeg
AttitudeLeg
.
This class is different from the AttitudesSequence
class in Orekit because even if they
both represent a sequence of attitude laws, AttitudeLegsSequence
contains attitude laws
version "Attitude", while AttitudesSequence
contains attitude laws version
"Orbit determination"; moreover, AttitudeLegsSequence
does not perform events detection
between two consecutive attitude laws. This class implements AttitudeLeg, so it can be used as
one.
Constructor and Description |
---|
AttitudeLegsSequence(String nature)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(Orbit orbit)
Compute the attitude corresponding to an orbital state.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Gets the attitude from the sequence.
The AttitudeLeg matching the date is called to compute the attitude. |
Attitude |
getPreviousAttitude(PVCoordinatesProvider provider,
AbsoluteDate date,
Frame frame)
Returns attitude from previous leg (compared to leg matching provided date) from the
sequence.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
add, addAll, ceiling, clear, comparator, contains, containsAll, descendingIterator, descendingSet, first, floor, getLeg, getNature, getTimeInterval, hasOverlaping, headSet, headSet, higher, isCompact, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, removeAll, retainAll, size, subSet, subSet, tailSet, tailSet, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNature, getTimeInterval
spliterator
parallelStream, removeIf, stream
public AttitudeLegsSequence(String nature)
nature
- nature of the sequencepublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
PatriusException
is thrown.getAttitude
in interface AttitudeProvider
pvProv
- spacecraft's position and velocity coordinates providerdate
- the date for which the attitude is computedframe
- the frame for which the attitude is computedPatriusException
- if the date is out of the sequence's range.public Attitude getAttitude(Orbit orbit) throws PatriusException
getAttitude
in interface AttitudeProvider
orbit
- current orbitPatriusException
- if attitude cannot be computedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives) throws PatriusException
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedPatriusException
- if spin derivatives can not be computedpublic Attitude getPreviousAttitude(PVCoordinatesProvider provider, AbsoluteDate date, Frame frame) throws PatriusException
Warning: previous attitude leg has to be defined at provided date.
This method is mainly used for switching sequence in order to retrieve attitude before/after a switch. Thus provided date should be a switching date.If two laws are juxtaposed at the given date, the SECOND law is the valid one.
provider
- spacecraft's position and velocity coordinates providerdate
- the date for which the attitude is computedframe
- the frame for which the attitude is computedPatriusException
- thrown if the date is out of the sequence's rangeCopyright © 2019 CNES. All Rights Reserved.