org.orekit.attitudes
Class AbstractAttitudeEphemerisGenerator

java.lang.Object
  extended by org.orekit.attitudes.AbstractAttitudeEphemerisGenerator
Direct Known Subclasses:
FixedStepAttitudeEphemerisGenerator, VariableStepAttitudeEphemerisGenerator

public abstract class AbstractAttitudeEphemerisGenerator
extends Object

This abstract class handles the generation of attitude ephemeris from an attitude laws sequence AttitudeLegsSequence.
The ephemeris generation can be done using a fixed time step or a variable time step, 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: AbstractAttitudeEphemerisGenerator.java 15449 2016-03-01 10:15:05Z bignon $
Author:
Tiziana Sabatini
See Also:
FixedStepAttitudeEphemerisGenerator, VariableStepAttitudeEphemerisGenerator

Field Summary
static int NO_TRANSITIONS
          The transition points are ignored.
protected  AttitudeLegsSequence sequence
          Attitude legs sequence.
static int START_END_TRANSITIONS
          The start and the end point of the laws are computed.
static int START_TRANSITIONS
          The start date of the laws are computed.
protected  int transitions
          Flag specifying what to do with the attitude laws transition points.
 
Constructor Summary
AbstractAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence, int transitionPoints)
          Simple constructor.
 
Method Summary
protected abstract  boolean addLastPoint(AbsoluteDateInterval ephemerisInterval)
          Decide if adding the last point of the time interval to the ephemeris list.
protected abstract  double computeStep(AbsoluteDate date, AbsoluteDateInterval ephemerisInterval)
          Computes the step used during attitude ephemeris generation.
 SortedSet<Attitude> generateEphemeris(AbsoluteDateInterval ephemerisInterval, Frame frame)
          Computes attitude ephemeris using a fixed or variable time step and choosing the interval of validity.
 SortedSet<Attitude> generateEphemeris(Frame frame)
          Computes attitude ephemeris using a fixed or variable time step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_TRANSITIONS

public static final int START_TRANSITIONS
The start date of the laws are computed.

See Also:
Constant Field Values

START_END_TRANSITIONS

public static final int START_END_TRANSITIONS
The start and the end point of the laws are computed.

See Also:
Constant Field Values

NO_TRANSITIONS

public static final int NO_TRANSITIONS
The transition points are ignored.

See Also:
Constant Field Values

sequence

protected final AttitudeLegsSequence sequence
Attitude legs sequence.


transitions

protected final int transitions
Flag specifying what to do with the attitude laws transition points.

Constructor Detail

AbstractAttitudeEphemerisGenerator

public AbstractAttitudeEphemerisGenerator(AttitudeLegsSequence legsSequence,
                                          int transitionPoints)
Simple constructor.

Parameters:
legsSequence - the sequence of attitude legs.
transitionPoints - what to do with the attitude laws transition points.
Method Detail

generateEphemeris

public SortedSet<Attitude> generateEphemeris(Frame frame)
                                      throws OrekitException
Computes attitude ephemeris using a fixed or variable time step. The interval of validity coincides with the time interval of the sequence.

Parameters:
frame - the frame of the computed attitude ephemeris
Returns:
the attitude ephemeris
Throws:
OrekitException - an orekit exception

generateEphemeris

public SortedSet<Attitude> generateEphemeris(AbsoluteDateInterval ephemerisInterval,
                                             Frame frame)
                                      throws OrekitException
Computes attitude ephemeris using a fixed or variable time step and choosing the interval of validity.

Parameters:
ephemerisInterval - the interval of validity of the ephemeris
frame - the frame of the computed attitude ephemeris
Returns:
the attitude ephemeris
Throws:
OrekitException - an orekit exception

computeStep

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

Parameters:
date - the date
ephemerisInterval - the interval of validity of the ephemeris
Returns:
the computed step
Throws:
OrekitException - an orekit exception

addLastPoint

protected abstract boolean addLastPoint(AbsoluteDateInterval ephemerisInterval)
Decide if adding the last point of the time interval to the ephemeris list.

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.