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".
|
AttitudeLawLeg(AttitudeLaw attitudeLaw,
AbsoluteDateInterval dateInterval)
Build an attitude law version "attitude".
|
AttitudeLawLeg(AttitudeLaw attitudeLaw,
AbsoluteDateInterval dateInterval,
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.
|
void |
truncate(AbsoluteDateInterval newIntervalOfValidity)
Truncate the time interval of validity of the leg
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toPrettyString
public AttitudeLawLeg(AttitudeLaw attitudeLaw, AbsoluteDate initialDate, AbsoluteDate finalDate)
Its interval of validity has closed endpoints except for AbsoluteDate.PAST_INFINITY
and
AbsoluteDate.FUTURE_INFINITY
.
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)
Its interval of validity has closed endpoints except for AbsoluteDate.PAST_INFINITY
and
AbsoluteDate.FUTURE_INFINITY
.
attitudeLaw
- : provider of the attitude lawinitialDate
- : start date of the interval of validityfinalDate
- : end date of the interval of validitynatureIn
- leg naturepublic AttitudeLawLeg(AttitudeLaw attitudeLaw, AbsoluteDateInterval dateInterval)
attitudeLaw
- : provider of the attitude lawdateInterval
- : interval of validitypublic AttitudeLawLeg(AttitudeLaw attitudeLaw, AbsoluteDateInterval dateInterval, String natureIn)
attitudeLaw
- : provider of the attitude lawdateInterval
- : 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 void truncate(AbsoluteDateInterval newIntervalOfValidity) throws PatriusException
truncate
in interface Leg
newIntervalOfValidity
- the new time intervalPatriusException
- if the new time interval is not included in the current time intervalpublic 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.