org.apache.commons.math3.ode.nonstiff
Class StepProblem
java.lang.Object
org.apache.commons.math3.ode.nonstiff.StepProblem
- All Implemented Interfaces:
- EventHandler, FirstOrderDifferentialEquations
public class StepProblem
- extends Object
- implements FirstOrderDifferentialEquations, EventHandler
|
Constructor Summary |
StepProblem(double rateBefore,
double rateAfter,
double switchTime)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepProblem
public StepProblem(double rateBefore,
double rateAfter,
double switchTime)
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.