org.orekit.attitudes
Class FixedStepAttitudeEphemerisGenerator

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

public final class FixedStepAttitudeEphemerisGenerator
extends AbstractAttitudeEphemerisGenerator

This class handles the generation of attitude ephemeris from an attitude laws sequence AttitudeLegsSequence, using a fixed 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: FixedStepAttitudeEphemerisGenerator.java 8580 2013-04-22 08:32:59Z ClaudeD $
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
FixedStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence, double fixedStep)
          Builds an attitude ephemeris generator using a fixed time step and ignoring the attitude law transition points of the sequence.
FixedStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence, double fixedStep, int transitions)
          Builds an attitude ephemeris generator using a fixed 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 attitude 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

FixedStepAttitudeEphemerisGenerator

public FixedStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence,
                                           double fixedStep)
Builds an attitude ephemeris generator using a fixed time step and ignoring the attitude law transition points of the sequence.

Parameters:
legsSequence - the sequence of attitude legs.
fixedStep - the fixed time step.

FixedStepAttitudeEphemerisGenerator

public FixedStepAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence,
                                           double fixedStep,
                                           int transitions)
Builds an attitude ephemeris generator using a fixed time step and choosing the treatment to apply to the transition points of the sequence.

Parameters:
legsSequence - the sequence of attitude legs.
fixedStep - the fixed time step
transitions - what to do with the attitude laws transition points:
Method Detail

computeStep

protected double computeStep(AbsoluteDate date,
                             AbsoluteDateInterval ephemerisInterval)
                      throws OrekitException
Description copied from class: AbstractAttitudeEphemerisGenerator
Computes the step used during attitude ephemeris generation.

Specified by:
computeStep in class AbstractAttitudeEphemerisGenerator
Parameters:
date - the 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 © 2016 CNES. All Rights Reserved.