org.apache.commons.math.ode
Class StepProblem

java.lang.Object
  extended by org.apache.commons.math.ode.StepProblem
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.math.ode.FirstOrderDifferentialEquations, org.apache.commons.math.ode.SwitchingFunction

public class StepProblem
extends java.lang.Object
implements org.apache.commons.math.ode.FirstOrderDifferentialEquations, org.apache.commons.math.ode.SwitchingFunction

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.commons.math.ode.SwitchingFunction
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)
           
 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)
Specified by:
eventOccurred in interface org.apache.commons.math.ode.SwitchingFunction

g

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

resetState

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


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