[jira] [Resolved] (MATH-979) Stop integration in handleStep method

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Resolved] (MATH-979) Stop integration in handleStep method

Otto Fowler (Jira)

     [ https://issues.apache.org/jira/browse/MATH-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe resolved MATH-979.

    Resolution: Implemented

This feature is already implemented using event handlers, and JIRA is not a place for questions.

> Stop integration in handleStep method
> -------------------------------------
>                 Key: MATH-979
>                 URL: https://issues.apache.org/jira/browse/MATH-979
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Sindeev Sergey
>            Priority: Minor
> I use ClassicalRungeKutta integrator to solve ODE system. in handleStep method every step value is plotted on chart. integration lasts until stop button is clicked. I need a method to stop integration in handleStep like:
> public void handleStep(StepInterpolator interpolator, boolean isLast) {
> ...
> if (stopButton.isSelected()){
>    getIntegrator().stop();
> }
> ...
> }
> Is this possible ? or there is a better way for this ?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira