org.orekit.attitudes
Class AttitudeLegLaw

java.lang.Object
  extended by org.orekit.attitudes.AttitudeLegLaw
All Implemented Interfaces:
Serializable, AttitudeLaw, AttitudeProvider

public class AttitudeLegLaw
extends Object
implements AttitudeLaw

This class represents an attitude law version "attitudeLeg", with an interval of validity (whose borders are closed points) and attitude laws outside this interval of validity.

Since:
3.1
Version:
$Id: AttitudeLegLaw.java 17582 2017-05-10 12:58:16Z bignon $
Author:
galpint
See Also:
Serialized Form
Concurrency :
conditionally thread-safe
Concurrency comment :
The use of an AttitudeLegLaw makes it thread-safe only if the two AttitudeLaw and the AttitudeLeg are.

Constructor Summary
AttitudeLegLaw(AttitudeLaw attitudelawBefore, AttitudeLeg attitudeleg, AttitudeLaw attitudelawAfter)
          Build an attitude law version "attitudeLeg".
 
Method Summary
 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.
 void setSpinDerivativesComputation(boolean computeSpinDerivatives)
          Method to activate spin derivative computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttitudeLegLaw

public AttitudeLegLaw(AttitudeLaw attitudelawBefore,
                      AttitudeLeg attitudeleg,
                      AttitudeLaw attitudelawAfter)
Build an attitude law version "attitudeLeg". Its interval of validity has closed endpoints. If the interpolation date is contained in the interval of validity of leg, the interpolated attitude is returned according to this law. If the interpolation date is before (resp. after) the interval of validity of leg, the returned interpolated attitude is computed following lawBefore (reps. lawAfter)

Parameters:
attitudelawBefore - : law before interval of validity
attitudeleg - : law during interval of validity
attitudelawAfter - : Law after interval of validity
Method Detail

getAttitude

public Attitude getAttitude(PVCoordinatesProvider pvProv,
                            AbsoluteDate date,
                            Frame frame)
                     throws OrekitException
Compute the attitude corresponding to an orbital state.

Specified by:
getAttitude in interface AttitudeProvider
Parameters:
pvProv - local position-velocity provider around current date
date - current date
frame - reference frame from which attitude is computed
Returns:
attitude attitude on the specified date and position-velocity state
Throws:
OrekitException - if attitude cannot be computed

getAttitude

public Attitude getAttitude(Orbit orbit)
                     throws OrekitException
Compute the attitude corresponding to an orbital state.

Specified by:
getAttitude in interface AttitudeProvider
Parameters:
orbit - current orbit
Returns:
attitude attitude on the current orbit
Throws:
OrekitException - if attitude cannot be computed

setSpinDerivativesComputation

public void setSpinDerivativesComputation(boolean computeSpinDerivatives)
                                   throws OrekitException
Method to activate spin derivative computation.

Spin derivatives computation applies to lawBefore, leg and lawAfter.

Specified by:
setSpinDerivativesComputation in interface AttitudeProvider
Parameters:
computeSpinDerivatives - true if spin derivatives should be computed
Throws:
OrekitException - if spin derivatives can not be computed


Copyright © 2017 CNES. All Rights Reserved.