org.orekit.attitudes
Class AbstractAttitudeLaw

java.lang.Object
  extended by org.orekit.attitudes.AbstractAttitudeLaw
All Implemented Interfaces:
Serializable, AttitudeLaw, AttitudeProvider
Direct Known Subclasses:
AeroAttitudeLaw, BodyCenterPointing, CelestialBodyPointed, ComposedAttitudeLaw, ConstantAttitudeLaw, FixedRate, GroundPointing, IsisSunPointing, LofOffset, SpinStabilized, TargetPointing, TwoDirectionsAttitude

public abstract class AbstractAttitudeLaw
extends Object
implements AttitudeLaw

This abstract class gather all common features to classes implementing the AttitudeLaw interface.

Since:
1.3
Version:
$Id: AbstractAttitudeLaw.java 17602 2017-05-18 08:25:23Z bignon $
Author:
chabaudp
See Also:
Serialized Form

Constructor Summary
AbstractAttitudeLaw()
           
 
Method Summary
 Attitude getAttitude(Orbit orbit)
          Compute the attitude corresponding to an orbital state.
 boolean getSpinDerivativesComputation()
          Get the value of the flag indicating if spin derivation computation is activated.
 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
 
Methods inherited from interface org.orekit.attitudes.AttitudeProvider
getAttitude
 

Constructor Detail

AbstractAttitudeLaw

public AbstractAttitudeLaw()
Method Detail

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.

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

getSpinDerivativesComputation

public boolean getSpinDerivativesComputation()
Get the value of the flag indicating if spin derivation computation is activated.

Returns:
true if the spin derivative have to be computed, false otherwise


Copyright © 2017 CNES. All Rights Reserved.