org.orekit.propagation.integration
public abstract class StateMapper extends Object
SpacecraftState
instances.Modifier | Constructor and Description |
---|---|
protected |
StateMapper(AbsoluteDate referenceDate,
double mu,
OrbitType orbitType,
PositionAngle positionAngleType,
AttitudeProvider attitudeProvider,
Frame frame)
Simple constructor.
|
Modifier and Type | Method and 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.
|
abstract SpacecraftState |
mapArrayToState(double t,
double[] y)
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.
|
abstract void |
mapStateToArray(SpacecraftState state,
double[] y)
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 (m3/s2)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 double mapDateToDouble(AbsoluteDate date)
date
- datepublic abstract SpacecraftState mapArrayToState(double t, double[] y) throws OrekitException
t
- date offsety
- state componentsOrekitException
- if array is inconsistent or cannot be mappedpublic abstract void mapStateToArray(SpacecraftState state, double[] y) throws OrekitException
state
- state to mapy
- placeholder where to put the componentsOrekitException
- if state is inconsistent or cannot be mappedCopyright © 2002–2015 CS Syst?mes d'Information. All rights reserved.