public abstract class AbstractAttitudeEphemerisGenerator extends Object
StrictAttitudeLegsSequence
.FixedStepAttitudeEphemerisGenerator
,
VariableStepAttitudeEphemerisGenerator
Modifier and Type | Field and Description |
---|---|
static int |
NO_TRANSITIONS
The transition points are ignored.
|
protected PVCoordinatesProvider |
provider
PV coordinate provider.
|
protected StrictAttitudeLegsSequence<AttitudeLeg> |
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 and Description |
---|
AbstractAttitudeEphemerisGenerator(StrictAttitudeLegsSequence<AttitudeLeg> legsSequence,
int transitionPoints,
PVCoordinatesProvider providerIn)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Attitude |
getPreviousAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Returns attitude from previous leg (compared to leg matching provided date) from the
sequence.
|
protected AbsoluteDateInterval |
getTimeInterval()
Returns the underlying sequence time interval.
|
public static final int START_TRANSITIONS
public static final int START_END_TRANSITIONS
public static final int NO_TRANSITIONS
protected final StrictAttitudeLegsSequence<AttitudeLeg> sequence
protected final int transitions
protected final PVCoordinatesProvider provider
public AbstractAttitudeEphemerisGenerator(StrictAttitudeLegsSequence<AttitudeLeg> legsSequence, int transitionPoints, PVCoordinatesProvider providerIn)
legsSequence
- the sequence of attitude legs.transitionPoints
- what to do with the attitude laws transition points.providerIn
- PV coordinates providerpublic SortedSet<Attitude> generateEphemeris(Frame frame) throws PatriusException
frame
- the frame of the computed attitude ephemerisPatriusException
- an orekit exceptionpublic SortedSet<Attitude> generateEphemeris(AbsoluteDateInterval ephemerisInterval, Frame frame) throws PatriusException
ephemerisInterval
- the interval of validity of the ephemerisframe
- the frame of the computed attitude ephemerisPatriusException
- an orekit exceptionpublic Attitude getPreviousAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
Warning: previous attitude leg has to be defined at provided date. Otherwise null is returned
This method is mainly used for switching sequence in order to retrieve attitude before/after a switch. Thus provided date should be a switching date.pvProv
- spacecraft's position and velocity coordinates providerdate
- the date for which the attitude is computedframe
- the frame for which the attitude is computedPatriusException
- thrown if attitude could not be retrievedprotected abstract double computeStep(AbsoluteDate date, AbsoluteDateInterval ephemerisInterval) throws PatriusException
date
- the dateephemerisInterval
- the interval of validity of the ephemerisPatriusException
- an orekit exceptionprotected abstract boolean addLastPoint(AbsoluteDateInterval ephemerisInterval)
ephemerisInterval
- the interval of validity of the ephemeris.protected AbsoluteDateInterval getTimeInterval()
Copyright © 2023 CNES. All rights reserved.