public final class AttitudeLawLeg extends Object implements AttitudeLeg
Constructor and Description |
---|
AttitudeLawLeg(AttitudeLaw attitudeLaw,
AbsoluteDate initialDate,
AbsoluteDate finalDate)
Build an attitude law version "attitude".
|
AttitudeLawLeg(AttitudeLaw attitudeLaw,
AbsoluteDate initialDate,
AbsoluteDate finalDate,
String natureIn)
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.
|
String |
getNature()
Return the nature of the leg.
|
AbsoluteDateInterval |
getTimeInterval()
Return the time interval of validity of the leg
|
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 AttitudeLawLeg(AttitudeLaw attitudeLaw, AbsoluteDate initialDate, AbsoluteDate finalDate, String natureIn)
attitudeLaw
- : provider of the attitude lawinitialDate
- : start date of the interval of validityfinalDate
- : end date of the interval of validitynatureIn
- leg naturepublic AbsoluteDateInterval getTimeInterval()
getTimeInterval
in interface Leg
public AttitudeLaw getAttitudeLaw()
AttitudeLaw
of the current legpublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface AttitudeProvider
pvProv
- 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 AttitudeProvider
orbit
- current orbitPatriusException
- if attitude cannot be computedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives) throws PatriusException
Spin derivatives computation applies to underlying law
.
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedPatriusException
- if spin derivatives can not be computedCopyright © 2019 CNES. All rights reserved.