|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.jstats.ode.DifferentialEquation
The DifferentialEquation is the abstract basis for
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected double |
timeStep
a timeStep |
protected double |
x0
the first x value to start integration |
protected double[] |
y0
the initial value array |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Constructor Summary | |
DifferentialEquation(double timeStep)
constructs a new DifferentialEquation with default integrator. |
|
DifferentialEquation(double timeStep,
NumericalIntegrator integrator)
constructs a new DifferentialEquation with a user-specified integrator. |
|
DifferentialEquation(double timeStep,
short integrationMethod)
constructs a new DifferentialEquation with a preselected integrator. |
|
| Method Summary | |
NumericalIntegrator |
getIntegrator()
|
void |
initialize(double x,
double[] y)
initializes the differential equation |
protected double[] |
integrateY(double x,
double initialX,
double[] initialY)
integrates Y |
void |
setIntegrator(NumericalIntegrator integrator)
|
double[] |
y(double x)
returns y as a function of x |
| Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.tudelft.simulation.jstats.ode.DifferentialEquationInterface |
dy |
| Field Detail |
protected double[] y0
protected double timeStep
protected double x0
| Constructor Detail |
public DifferentialEquation(double timeStep)
timeStep - the timeStep to use.
public DifferentialEquation(double timeStep,
NumericalIntegrator integrator)
timeStep - the timeStep to use.integrator - the integrator to use.
public DifferentialEquation(double timeStep,
short integrationMethod)
timeStep - the timeStep to use.integrationMethod - the integrator to use.| Method Detail |
public void initialize(double x,
double[] y)
DifferentialEquationInterface
initialize in interface DifferentialEquationInterfacex - the x-valuey - the y-valueDifferentialEquationInterface.initialize(double,
double[])public double[] y(double x)
DifferentialEquationInterface
y in interface DifferentialEquationInterfacex - the x-value
DifferentialEquationInterface.y(double)
protected double[] integrateY(double x,
double initialX,
double[] initialY)
x - the x-valueinitialX - the initial X valueinitialY - the initial Y value
public NumericalIntegrator getIntegrator()
public void setIntegrator(NumericalIntegrator integrator)
integrator - The integrator to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||