public final class AttitudeLawLeg extends Object implements AttitudeLeg
| Constructor and Description |
|---|
AttitudeLawLeg(AttitudeLaw attitudeLaw,
AbsoluteDate initialDate,
AbsoluteDate finalDate)
Build an attitude law version "attitude".
|
| 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)
Compute the attitude corresponding to an orbital state.
|
AttitudeLaw |
getAttitudeLaw()
Gets the attitude law provider associated to the current attitude leg.
|
AbsoluteDateInterval |
getTimeInterval()
Return the time interval of validity
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
public AttitudeLawLeg(AttitudeLaw attitudeLaw, AbsoluteDate initialDate, AbsoluteDate finalDate)
attitudeLaw - : provider of the attitude lawinitialDate - : start date of the interval of validityfinalDate - : end date of the interval of validitypublic AbsoluteDateInterval getTimeInterval()
AttitudeLeggetTimeInterval in interface AttitudeLegpublic AttitudeLaw getAttitudeLaw()
AttitudeLaw of the current legpublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
AttitudeProvidergetAttitude in interface AttitudeProviderpvProv - local position-velocity provider around current datedate - current dateframe - reference frame from which attitude is computedPatriusException - if attitude cannot be computedpublic Attitude getAttitude(Orbit orbit) throws PatriusException
getAttitude in interface AttitudeProviderorbit - current orbitPatriusException - if attitude cannot be computedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
throws PatriusException
Spin derivatives computation applies to underlying law.
setSpinDerivativesComputation in interface AttitudeProvidercomputeSpinDerivatives - true if spin derivatives should be computedPatriusException - if spin derivatives can not be computedCopyright © 2017 CNES. All rights reserved.