Class PythonAbstractForceModel

    • Constructor Detail

      • PythonAbstractForceModel

        public PythonAbstractForceModel()
    • 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
      • dependsOnPositionOnly

        public boolean dependsOnPositionOnly()
        Check if force models depends on position only. Extension point for Python.
        Returns:
        true if force model depends on position only, false if it depends on velocity, either directly or due to a dependency on attitude
        Since:
        9.0
      • acceleration

        public Vector3D acceleration​(SpacecraftState s,
                                     double[] parameters)
        Compute acceleration. Extension point for Python.
        Parameters:
        s - current state information: date, kinematics, attitude
        parameters - values of the force model parameters
        Returns:
        acceleration in same frame as state
        Since:
        9.0
      • acceleration

        public <T extends CalculusFieldElement<T>> FieldVector3D<T> acceleration​(FieldSpacecraftState<T> s,
                                                                                 T[] parameters)
        Compute acceleration. Automatically directs to the Python extension point acceleration_FT
        Type Parameters:
        T - type of the elements
        Parameters:
        s - current state information: date, kinematics, attitude
        parameters - values of the force model parameters
        Returns:
        acceleration in same frame as state
        Since:
        9.0
      • acceleration_FT

        public <T extends CalculusFieldElement<T>> FieldVector3D<T> acceleration_FT​(FieldSpacecraftState<T> s,
                                                                                    T[] parameters)
        Compute acceleration, Alternative python interface point for the acceleration method. Extension point for Python.
        Parameters:
        s - current state information: date, kinematics, attitude
        parameters - values of the force model parameters
        Returns:
        acceleration in same frame as state
        Since:
        9.0
      • getEventsDetectors

        public Stream<EventDetector> getEventsDetectors()
        Get the discrete events related to the model. Extension point for Python.
        Returns:
        stream of events detectors
      • getFieldEventsDetectors

        public <T extends CalculusFieldElement<T>> Stream<FieldEventDetector<T>> getFieldEventsDetectors​(Field<T> field)
        Get the discrete events related to the model. Extension point for Python.
        Type Parameters:
        T - extends CalculusFieldElement<T>
        Parameters:
        field - field to which the state belongs
        Returns:
        stream of events detectors
      • getParametersDrivers

        public List<ParameterDriver> getParametersDrivers()
        Get the drivers for force model parameters. Extension point for Python.
        Returns:
        drivers for force model parameters
        Since:
        8.0