Class PythonStateMapper
- java.lang.Object
-
- org.orekit.propagation.integration.StateMapper
-
- org.orekit.propagation.integration.PythonStateMapper
-
public class PythonStateMapper extends StateMapper
-
-
Constructor Summary
Constructors Constructor Description PythonStateMapper(AbsoluteDate referenceDate, double mu, OrbitType orbitType, PositionAngleType positionAngleType, AttitudeProvider attitudeProvider, Frame frame)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Part of JCC Python interface to objectSpacecraftState
mapArrayToState(AbsoluteDate date, double[] y, double[] yDot, PropagationType type)
Map the raw double components to a spacecraft state.void
mapStateToArray(SpacecraftState state, double[] y, double[] yDot)
Map a spacecraft state to raw double components.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to object-
Methods inherited from class org.orekit.propagation.integration.StateMapper
getAttitudeProvider, getFrame, getMu, getOrbitType, getPositionAngleType, getReferenceDate, mapArrayToState, mapDateToDouble, mapDoubleToDate, mapDoubleToDate, setAttitudeProvider
-
-
-
-
Constructor Detail
-
PythonStateMapper
public PythonStateMapper(AbsoluteDate referenceDate, double mu, OrbitType orbitType, PositionAngleType positionAngleType, AttitudeProvider attitudeProvider, Frame frame)
Simple constructor.The position parameter type is meaningful only if
propagation orbit type
support it. As an example, it is not meaningful for propagation inCartesian
parameters.- Parameters:
referenceDate
- reference datemu
- central attraction coefficient (m³/s²)orbitType
- orbit type to use for mapping, null for propagating usingAbsolutePVCoordinates
rather thanOrbit
positionAngleType
- angle type to use for propagationattitudeProvider
- attitude providerframe
- inertial frame
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
mapArrayToState
public SpacecraftState mapArrayToState(AbsoluteDate date, double[] y, double[] yDot, PropagationType type)
Map the raw double components to a spacecraft state.- Specified by:
mapArrayToState
in classStateMapper
- Parameters:
date
- of the state componentsy
- state componentsyDot
- time derivatives of the state components (null if unknown, in which case Keplerian motion is assumed)type
- type of the elements used to build the state (mean or osculating).- Returns:
- spacecraft state
-
mapStateToArray
public void mapStateToArray(SpacecraftState state, double[] y, double[] yDot)
Map a spacecraft state to raw double components.- Specified by:
mapStateToArray
in classStateMapper
- Parameters:
state
- state to mapy
- placeholder where to put the componentsyDot
- placeholder where to put the components derivatives
-
-