org.apache.commons.math3.ode.nonstiff
Class StepProblem

java.lang.Object
  extended by org.apache.commons.math3.ode.nonstiff.StepProblem
All Implemented Interfaces:
EventHandler, FirstOrderDifferentialEquations

public class StepProblem
extends Object
implements FirstOrderDifferentialEquations, EventHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.commons.math3.ode.events.EventHandler
EventHandler.Action
 
Constructor Summary
StepProblem(double rateBefore, double rateAfter, double switchTime)
           
 
Method Summary
 void computeDerivatives(double t, double[] y, double[] yDot)
           
 EventHandler.Action eventOccurred(double t, double[] y, boolean increasing)
           
 double g(double t, double[] y)
           
 int getDimension()
           
 void init(double t0, double[] y0, double t)
           
 void resetState(double t, double[] y)
           
 void setRate(double rate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepProblem

public StepProblem(double rateBefore,
                   double rateAfter,
                   double switchTime)
Method Detail

computeDerivatives

public void computeDerivatives(double t,
                               double[] y,
                               double[] yDot)
Specified by:
computeDerivatives in interface FirstOrderDifferentialEquations

getDimension

public int getDimension()
Specified by:
getDimension in interface FirstOrderDifferentialEquations

setRate

public void setRate(double rate)

init

public void init(double t0,
                 double[] y0,
                 double t)
Specified by:
init in interface EventHandler

eventOccurred

public EventHandler.Action eventOccurred(double t,
                                         double[] y,
                                         boolean increasing)
Specified by:
eventOccurred in interface EventHandler

g

public double g(double t,
                double[] y)
Specified by:
g in interface EventHandler

resetState

public void resetState(double t,
                       double[] y)
Specified by:
resetState in interface EventHandler


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.