Example usage for org.apache.commons.math3.ode AbstractIntegrator addEventHandler

List of usage examples for org.apache.commons.math3.ode AbstractIntegrator addEventHandler

Introduction

In this page you can find the example usage for org.apache.commons.math3.ode AbstractIntegrator addEventHandler.

Prototype

public void addEventHandler(final EventHandler handler, final double maxCheckInterval, final double convergence,
        final int maxIterationCount) 

Source Link

Usage

From source file:org.orekit.propagation.integration.AbstractIntegratedPropagator.java

/** Wrap an Orekit event detector and register it to the integrator.
 * @param integ integrator into which event detector should be registered
 * @param detector event detector to wrap
 *//*from   w w w  .j  a v a  2 s  .  c  o m*/
protected void setUpEventDetector(final AbstractIntegrator integ, final EventDetector detector) {
    integ.addEventHandler(new AdaptedEventDetector(detector), detector.getMaxCheckInterval(),
            detector.getThreshold(), detector.getMaxIterationCount());
}