org.orekit.attitudes
Class VariableStepAttitudeEphemerisGenerator

java.lang.Object
  extended by org.orekit.attitudes.AbstractAttitudeEphemerisGenerator
      extended by org.orekit.attitudes.VariableStepAttitudeEphemerisGenerator

public class VariableStepAttitudeEphemerisGenerator
extends AbstractAttitudeEphemerisGenerator

This class handles the generation of attitude ephemeris from an attitude laws sequence AttitudeLegsSequence, using a variable time step.
The ephemeris generation can be done setting the generation time interval (the default value is the time interval of the sequence), and the treatment to apply to the transition points of the sequence (ignore them, compute the attitude of the initial date of the laws, compute the attitude of the initial and final date of the laws).

Since:
1.3
Version:
$Id: VariableStepAttitudeEphemerisGenerator.java 8434 2013-04-10 15:34:31Z SabatiniT $
Author:
Tiziana Sabatini
Concurrency :
not thread-safe
Concurrency comment :
The AttitudeLegsSequence attribute is mutable.

Field Summary
 
Fields inherited from class org.orekit.attitudes.AbstractAttitudeEphemerisGenerator
NO_TRANSITIONS, sequence, START_END_TRANSITIONS, START_TRANSITIONS, transitions
 
Constructor Summary
VariableStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence, double stepMin, double stepMax, double angDistMax)
          Builds an attitude ephemeris generator using a variable time step and ignoring the attitude law transition points of the sequence.
VariableStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence, double stepMin, double stepMax, double angDistMax, int transitions)
          Builds an attitude ephemeris generator using a variable time step and choosing the treatment to apply to the transition points of the sequence.
 
Method Summary
protected  boolean addLastPoint(AbsoluteDateInterval ephemerisInterval)
          Decide if adding the last point of the time interval to the ephemeris list.
protected  double computeStep(AbsoluteDate date, AbsoluteDateInterval ephemerisInterval)
          Computes the step used during the variable step ephemeris generation.
 
Methods inherited from class org.orekit.attitudes.AbstractAttitudeEphemerisGenerator
generateEphemeris, generateEphemeris
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableStepAttitudeEphemerisGenerator

public VariableStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence,
                                              double stepMin,
                                              double stepMax,
                                              double angDistMax)
Builds an attitude ephemeris generator using a variable time step and ignoring the attitude law transition points of the sequence.

Parameters:
legsSequence - the sequence of attitude legs.
stepMin - the minimum time step
stepMax - the maximum time step
angDistMax - the maximum allowed angular distance between two consecutive attitude ephemeris

VariableStepAttitudeEphemerisGenerator

public VariableStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence,
                                              double stepMin,
                                              double stepMax,
                                              double angDistMax,
                                              int transitions)
Builds an attitude ephemeris generator using a variable time step and choosing the treatment to apply to the transition points of the sequence.

Parameters:
legsSequence - the sequence of attitude legs.
stepMin - the minimum time step
stepMax - the maximum time step
angDistMax - the maximum allowed angular distance between two consecutive attitude ephemeris
transitions - what to do with the attitude laws transition points:
Method Detail

computeStep

protected double computeStep(AbsoluteDate date,
                             AbsoluteDateInterval ephemerisInterval)
                      throws OrekitException
Computes the step used during the variable step ephemeris generation.

Specified by:
computeStep in class AbstractAttitudeEphemerisGenerator
Parameters:
date - the initial date
ephemerisInterval - the interval of validity of the ephemeris
Returns:
the computed step
Throws:
OrekitException - an orekit exception

addLastPoint

protected boolean addLastPoint(AbsoluteDateInterval ephemerisInterval)
Description copied from class: AbstractAttitudeEphemerisGenerator
Decide if adding the last point of the time interval to the ephemeris list.

Specified by:
addLastPoint in class AbstractAttitudeEphemerisGenerator
Parameters:
ephemerisInterval - the interval of validity of the ephemeris.
Returns:
true if the attitude at the last point has to be computed.


Copyright © 2017 CNES. All Rights Reserved.