org.apache.commons.math.ode
Class TestProblemHandler

java.lang.Object
  extended by org.apache.commons.math.ode.TestProblemHandler
All Implemented Interfaces:
org.apache.commons.math.ode.sampling.StepHandler

public class TestProblemHandler
extends Object
implements org.apache.commons.math.ode.sampling.StepHandler

This class is used to handle steps for the test problems integrated during the junit tests for the ODE integrators.


Constructor Summary
TestProblemHandler(TestProblemAbstract problem, org.apache.commons.math.ode.ODEIntegrator integrator)
          Simple constructor.
 
Method Summary
 double getLastError()
          Get the error at the end of the integration.
 double getLastTime()
          Get the time at the end of the integration.
 double getMaximalTimeError()
          Get the maximal time error encountered during integration.
 double getMaximalValueError()
          Get the maximal value error encountered during integration.
 void handleStep(org.apache.commons.math.ode.sampling.StepInterpolator interpolator, boolean isLast)
           
 boolean requiresDenseOutput()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestProblemHandler

public TestProblemHandler(TestProblemAbstract problem,
                          org.apache.commons.math.ode.ODEIntegrator integrator)
Simple constructor.

Parameters:
problem - problem for which steps should be handled
integrator - ODE solver used
Method Detail

requiresDenseOutput

public boolean requiresDenseOutput()
Specified by:
requiresDenseOutput in interface org.apache.commons.math.ode.sampling.StepHandler

reset

public void reset()
Specified by:
reset in interface org.apache.commons.math.ode.sampling.StepHandler

handleStep

public void handleStep(org.apache.commons.math.ode.sampling.StepInterpolator interpolator,
                       boolean isLast)
                throws org.apache.commons.math.ode.DerivativeException
Specified by:
handleStep in interface org.apache.commons.math.ode.sampling.StepHandler
Throws:
org.apache.commons.math.ode.DerivativeException

getMaximalValueError

public double getMaximalValueError()
Get the maximal value error encountered during integration.

Returns:
maximal value error

getMaximalTimeError

public double getMaximalTimeError()
Get the maximal time error encountered during integration.

Returns:
maximal time error

getLastError

public double getLastError()
Get the error at the end of the integration.

Returns:
error at the end of the integration

getLastTime

public double getLastTime()
Get the time at the end of the integration.

Returns:
time at the end of the integration.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.