public abstract class StateMapper extends Object
SpacecraftState
instances.Modifier | Constructor | Description |
---|---|---|
protected |
StateMapper(AbsoluteDate referenceDate,
double mu,
OrbitType orbitType,
PositionAngle positionAngleType,
AttitudeProvider attitudeProvider,
Frame frame) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
AttitudeProvider |
getAttitudeProvider() |
Get the attitude provider.
|
Frame |
getFrame() |
Get the inertial frame.
|
double |
getMu() |
Get the central attraction coefficient μ.
|
OrbitType |
getOrbitType() |
Get propagation parameter type.
|
PositionAngle |
getPositionAngleType() |
Get propagation parameter type.
|
AbsoluteDate |
getReferenceDate() |
Get reference date.
|
SpacecraftState |
mapArrayToState(double t,
double[] y,
double[] yDot,
boolean meanOnly) |
Map the raw double components to a spacecraft state.
|
abstract SpacecraftState |
mapArrayToState(AbsoluteDate date,
double[] y,
double[] yDot,
boolean meanOnly) |
Map the raw double components to a spacecraft state.
|
double |
mapDateToDouble(AbsoluteDate date) |
Map a date to a raw double time offset.
|
AbsoluteDate |
mapDoubleToDate(double t) |
Map the raw double time offset to a date.
|
AbsoluteDate |
mapDoubleToDate(double t,
AbsoluteDate date) |
Map the raw double time offset to a date.
|
abstract void |
mapStateToArray(SpacecraftState state,
double[] y,
double[] yDot) |
Map a spacecraft state to raw double components.
|
void |
setPositionAngleType() |
Set position angle type.
|
protected StateMapper(AbsoluteDate referenceDate, double mu, OrbitType orbitType, PositionAngle positionAngleType, AttitudeProvider attitudeProvider, Frame frame)
The position parameter type is meaningful only if propagation orbit type
support it. As an example, it is not meaningful for propagation
in Cartesian
parameters.
referenceDate
- reference datemu
- central attraction coefficient (m³/s²)orbitType
- orbit type to use for mappingpositionAngleType
- angle type to use for propagationattitudeProvider
- attitude providerframe
- inertial framepublic AbsoluteDate getReferenceDate()
public OrbitType getOrbitType()
public void setPositionAngleType()
public PositionAngle getPositionAngleType()
public double getMu()
public Frame getFrame()
public AttitudeProvider getAttitudeProvider()
public AbsoluteDate mapDoubleToDate(double t)
t
- date offsetpublic AbsoluteDate mapDoubleToDate(double t, AbsoluteDate date)
t
- date offsetdate
- The expected date.date
if it is the same time as t
to within the
lower precision of the latter. Otherwise a new date is returned that
corresponds to time t
.public double mapDateToDouble(AbsoluteDate date)
date
- datepublic SpacecraftState mapArrayToState(double t, double[] y, double[] yDot, boolean meanOnly) throws OrekitException
t
- date offsety
- state componentsyDot
- time derivatives of the state components (null if unknown, in which case Keplerian motion is assumed)meanOnly
- use only the mean elements to build the stateOrekitException
- if array is inconsistent or cannot be mappedpublic abstract SpacecraftState mapArrayToState(AbsoluteDate date, double[] y, double[] yDot, boolean meanOnly) throws OrekitException
date
- of the state componentsy
- state componentsyDot
- time derivatives of the state components (null if unknown, in which case Keplerian motion is assumed)meanOnly
- use only the mean elements to build the stateOrekitException
- if array is inconsistent or cannot be mappedpublic abstract void mapStateToArray(SpacecraftState state, double[] y, double[] yDot) throws OrekitException
state
- state to mapy
- placeholder where to put the componentsyDot
- placeholder where to put the components derivativesOrekitException
- if state is inconsistent or cannot be mappedCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.