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

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

public class StepProblem
extends Object
implements org.apache.commons.math.ode.FirstOrderDifferentialEquations, org.apache.commons.math.ode.events.EventHandler


Field Summary
 
Fields inherited from interface org.apache.commons.math.ode.events.EventHandler
CONTINUE, RESET_DERIVATIVES, RESET_STATE, STOP
 
Constructor Summary
StepProblem(double rateBefore, double rateAfter, double switchTime)
           
 
Method Summary
 void computeDerivatives(double t, double[] y, double[] yDot)
           
 int eventOccurred(double t, double[] y, boolean increasing)
           
 double g(double t, double[] y)
           
 int getDimension()
           
 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 org.apache.commons.math.ode.FirstOrderDifferentialEquations

getDimension

public int getDimension()
Specified by:
getDimension in interface org.apache.commons.math.ode.FirstOrderDifferentialEquations

setRate

public void setRate(double rate)

eventOccurred

public int eventOccurred(double t,
                         double[] y,
                         boolean increasing)
Specified by:
eventOccurred in interface org.apache.commons.math.ode.events.EventHandler

g

public double g(double t,
                double[] y)
Specified by:
g in interface org.apache.commons.math.ode.events.EventHandler

resetState

public void resetState(double t,
                       double[] y)
Specified by:
resetState in interface org.apache.commons.math.ode.events.EventHandler


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