Class DifferentialEquation<T extends Number & Comparable<T>>

java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.jstats.ode.DifferentialEquation
nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquation<T>
Type Parameters:
T - the time type
All Implemented Interfaces:
Serializable, Remote, EventListener, DifferentialEquationInterface, org.djutils.event.EventListener, org.djutils.event.EventProducer

public abstract class DifferentialEquation<T extends Number & Comparable<T>> extends DifferentialEquation implements DifferentialEquationInterface, org.djutils.event.EventListener
The Differential equation provides a reference implementation of the differential equation.

Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

Since:
1.5
Author:
Peter Jacobs
See Also:
  • Field Details

    • VALUE_CHANGED_EVENT

      public org.djutils.event.EventType[] VALUE_CHANGED_EVENT
      VALUE_CHANGED_EVENT is fired on value changes. The array is initialized in the ODE's constructor.
    • FUNCTION_CHANGED_EVENT

      public org.djutils.event.EventType FUNCTION_CHANGED_EVENT
      FUNCTION_CHANGED_EVENT is fired on function changes.
    • simulator

      protected DessSimulatorInterface<T extends Number & Comparable<T>> simulator
      simulator.
    • numberOfVariables

      public int numberOfVariables
      the number of variables in the equation.
    • previousX

      protected double previousX
      the previousX.
    • previousY

      protected double[] previousY
      the previousY.
  • Constructor Details

    • DifferentialEquation

      public DifferentialEquation(DessSimulatorInterface<T> simulator, int numberOfVariables) throws RemoteException
      Construct a new DifferentialEquation with a step size equal to the simulator time step, and Runge-Kutta4 as the default integrator. Indicate the number of variables that the differential qquation will use.
      Parameters:
      simulator - DessSimulatorInterface<T>; the simulator
      numberOfVariables - int; the number of variables in the equation
      Throws:
      RemoteException - on remote network exception for the listener
    • DifferentialEquation

      public DifferentialEquation(DessSimulatorInterface<T> simulator, NumericalIntegratorType numericalIntegrator, int numberOfVariables) throws RemoteException
      constructs a new DifferentialEquation with a step size equal to the simulator timestep.
      Parameters:
      simulator - DessSimulatorInterface<T>; the simulator
      numericalIntegrator - NumericalIntegrator; the actual integrator to be used.
      numberOfVariables - int; the number of variables in the equation
      Throws:
      RemoteException - on remote network exception for the listener
    • DifferentialEquation

      public DifferentialEquation(DessSimulatorInterface<T> simulator, double timeStep, NumericalIntegratorType numericalIntegrator, int numberOfVariables) throws RemoteException
      constructs a new DifferentialEquation.
      Parameters:
      simulator - DessSimulatorInterface<T>; the simulator.
      timeStep - double; the timeStep for ODE estimation.
      numericalIntegrator - NumericalIntegrator; the actual integrator to be used.
      numberOfVariables - int; the number of variables in the equation
      Throws:
      RemoteException - on remote network exception for the listener
  • Method Details