nl.tudelft.simulation.dsol.formalisms.dess
Class DifferentialEquation

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.jstats.ode.DifferentialEquation
          extended by nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquation
All Implemented Interfaces:
Serializable, EventListener, EventListenerInterface, EventProducerInterface, DifferentialEquationInterface

public abstract class DifferentialEquation
extends DifferentialEquation
implements DifferentialEquationInterface, EventListenerInterface

The Differential equation provides a reference implementation of the differential equation.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.0
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:27 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
protected  double previousX
          the previousX
protected  double[] previousY
          the previousY
protected  DESSSimulatorInterface simulator
          simulator
 
Fields inherited from class nl.tudelft.simulation.jstats.ode.DifferentialEquation
timeStep, x0, y0
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquationInterface
FUNCTION_CHANGED_EVENT, VALUE_CHANGED_EVENT
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
DifferentialEquation(DESSSimulatorInterface simulator)
          constructs a new stateful DifferentialEquation with Euleras numerical integration method.
DifferentialEquation(DESSSimulatorInterface simulator, double timeStep)
          constructs a new stateful DifferentialEquation with Euleras numerical integration method.
DifferentialEquation(DESSSimulatorInterface simulator, double timeStep, NumericalIntegrator numericalIntegrator)
          constructs a new DifferentialEquation
DifferentialEquation(DESSSimulatorInterface simulator, double timeStep, short numericalMethod)
          constructs a new DifferentialEquation
 
Method Summary
 void initialize(double x, double[] y)
           
 void notify(EventInterface event)
           
 
Methods inherited from class nl.tudelft.simulation.jstats.ode.DifferentialEquation
getIntegrator, integrateY, setIntegrator, y
 
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, y
 

Field Detail

simulator

protected DESSSimulatorInterface simulator
simulator


previousX

protected double previousX
the previousX


previousY

protected double[] previousY
the previousY

Constructor Detail

DifferentialEquation

public DifferentialEquation(DESSSimulatorInterface simulator)
                     throws RemoteException
constructs a new stateful DifferentialEquation with Euleras numerical integration method.

Parameters:
simulator - the simulator
Throws:
RemoteException - on network exception

DifferentialEquation

public DifferentialEquation(DESSSimulatorInterface simulator,
                            double timeStep)
constructs a new stateful DifferentialEquation with Euleras numerical integration method.

Parameters:
simulator - the simulator
timeStep - the timeStep for ODE estimation

DifferentialEquation

public DifferentialEquation(DESSSimulatorInterface simulator,
                            double timeStep,
                            short numericalMethod)
constructs a new DifferentialEquation

Parameters:
simulator - the simulator.
timeStep - the timeStep for ODE estimation.
numericalMethod - the numerical method to be used.

DifferentialEquation

public DifferentialEquation(DESSSimulatorInterface simulator,
                            double timeStep,
                            NumericalIntegrator numericalIntegrator)
constructs a new DifferentialEquation

Parameters:
simulator - the simulator.
timeStep - the timeStep for ODE estimation.
numericalIntegrator - the actual integrator to be used.
Method Detail

notify

public void notify(EventInterface event)
            throws RemoteException
Specified by:
notify in interface EventListenerInterface
Throws:
RemoteException
See Also:
EventListenerInterface.notify(EventInterface)

initialize

public void initialize(double x,
                       double[] y)
Specified by:
initialize in interface DifferentialEquationInterface
Overrides:
initialize in class DifferentialEquation
See Also:
DifferentialEquationInterface.initialize(double, double[])


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.