|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.simulator.math.odes.AbstractDESSolver org.simulator.math.odes.AdaptiveStepsizeIntegrator org.simulator.math.odes.FirstOrderSolver
public abstract class FirstOrderSolver
This class is the superclass of the wrapper classes for the solvers of the Apache Math library.
Field Summary | |
---|---|
protected AbstractIntegrator |
integrator
The integrator used. |
Fields inherited from class org.simulator.math.odes.AdaptiveStepsizeIntegrator |
---|
absTol, relTol |
Fields inherited from interface org.apache.commons.math.ode.events.EventHandler |
---|
CONTINUE, RESET_DERIVATIVES, RESET_STATE, STOP |
Constructor Summary | |
---|---|
FirstOrderSolver()
default constructor |
|
FirstOrderSolver(double stepSize)
|
|
FirstOrderSolver(double stepSize,
boolean nonnegative)
|
|
FirstOrderSolver(FirstOrderSolver firstOrderSolver)
clone constructor |
Method Summary | |
---|---|
abstract FirstOrderSolver |
clone()
|
double[] |
computeChange(DESystem DES,
double[] y,
double t,
double stepSize,
double[] change,
boolean steadyState)
Computes the change for a given system at the current time with the current setting for the integration step size. |
protected abstract void |
createIntegrator()
initialization function of the integrator |
AbstractIntegrator |
getIntegrator()
|
protected boolean |
hasSolverEventProcessing()
|
void |
setStepSize(double stepSize)
Set the integration step size. |
Methods inherited from class org.simulator.math.odes.AdaptiveStepsizeIntegrator |
---|
getAbsTol, getRelTol, setAbsTol, setRelTol |
Methods inherited from class org.simulator.math.odes.AbstractDESSolver |
---|
additionalResults, addPropertyChangeListener, computeDelayedValue, eventOccurred, firePropertyChange, g, getName, getSerialversionuid, getStepSize, inBetweenSteps, initResultMatrix, initResultMatrix, initResultMatrix, isIncludeIntermediates, isNonnegative, isUnstable, processEvents, processEventsAndRules, processRules, removePropertyChangeListener, reset, resetState, setIncludeIntermediates, setNonnegative, setUnstableFlag, solve, solve, solve, solve |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractIntegrator integrator
Constructor Detail |
---|
public FirstOrderSolver()
public FirstOrderSolver(double stepSize)
stepSize
- public FirstOrderSolver(double stepSize, boolean nonnegative)
stepSize
- the
- nonnegative flag of the super class @see org.sbml.simulator.math.odes.AbstractDESSolverpublic FirstOrderSolver(FirstOrderSolver firstOrderSolver)
firstOrderSolver
- Method Detail |
---|
public void setStepSize(double stepSize)
DESSolver
setStepSize
in interface DESSolver
setStepSize
in class AbstractDESSolver
public abstract FirstOrderSolver clone()
clone
in interface DESSolver
clone
in class AbstractDESSolver
public double[] computeChange(DESystem DES, double[] y, double t, double stepSize, double[] change, boolean steadyState) throws DerivativeException
AbstractDESSolver
computeChange
in class AbstractDESSolver
DES
- The system to be simulated.y
- The current state of the system.t
- The current simulation time.change
- The vector for the resulting change of the system.
DerivativeException
protected abstract void createIntegrator()
public AbstractIntegrator getIntegrator()
protected boolean hasSolverEventProcessing()
hasSolverEventProcessing
in class AbstractDESSolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |