Class SimpleToleranceProvider

    • Constructor Detail

      • SimpleToleranceProvider

        public SimpleToleranceProvider​(double absoluteTolerance,
                                       double relativeTolerance)
        Constructor.
        Parameters:
        absoluteTolerance - expected absolute error
        relativeTolerance - expected relative error
    • Method Detail

      • getTolerances

        public double[][] getTolerances​(Orbit referenceOrbit,
                                        OrbitType propagationOrbitType,
                                        PositionAngleType positionAngleType)
        Description copied from interface: ToleranceProvider
        Retrieve the integration tolerances given a reference orbit.
        Specified by:
        getTolerances in interface ToleranceProvider
        Parameters:
        referenceOrbit - orbit
        propagationOrbitType - orbit type for propagation (can be different from the input orbit one)
        positionAngleType - reference position angle type
        Returns:
        absolute and relative tolerances
      • getTolerances

        public double[][] getTolerances​(Vector3D position,
                                        Vector3D velocity)
        Description copied from interface: CartesianToleranceProvider
        Retrieve the integration tolerances given reference position and velocity vectors.
        Specified by:
        getTolerances in interface CartesianToleranceProvider
        Parameters:
        position - reference position vector
        velocity - reference velocity vector
        Returns:
        absolute and relative tolerances