Class PythonStateMapper

    • 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 in Cartesian parameters.

        Parameters:
        referenceDate - reference date
        mu - central attraction coefficient (m³/s²)
        orbitType - orbit type to use for mapping, null for propagating using AbsolutePVCoordinates rather than Orbit
        positionAngleType - angle type to use for propagation
        attitudeProvider - attitude provider
        frame - 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
      • 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 class StateMapper
        Parameters:
        date - of the state components
        y - state components
        yDot - 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 class StateMapper
        Parameters:
        state - state to map
        y - placeholder where to put the components
        yDot - placeholder where to put the components derivatives