Enum Class NumericalIntegratorType
java.lang.Object
java.lang.Enum<NumericalIntegratorType>
nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegratorType
- All Implemented Interfaces:
Serializable
,Comparable<NumericalIntegratorType>
,java.lang.constant.Constable
NumericalIntegratorType is an enum with the currently implemented integrators.
Copyright (c) 2019-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdam's integration.Euler's integration.Gill's integration.Heun's integration.Milne's integration.RungeKutta's (3rd level) integration.RungeKutta's (4th level) integration.Runge-Kutta-Cash-Carp integration.Runge-Kutta-Fehlberg integration. -
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(double stepSize, DifferentialEquationInterface equation) Get an instance of the integrator.Class<? extends NumericalIntegrator>
Get the integrator class belonging to the name.int
getValue()
Returns the value from DSOL-1 before enum was introduced.static NumericalIntegratorType
Returns the enum constant of this class with the specified name.static NumericalIntegratorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EULER
Euler's integration. -
HEUN
Heun's integration. -
RUNGEKUTTA3
RungeKutta's (3rd level) integration. -
RUNGEKUTTA4
RungeKutta's (4th level) integration. -
ADAMS
Adam's integration. -
GILL
Gill's integration. -
MILNE
Milne's integration. -
RUNGEKUTTAFEHLBERG
Runge-Kutta-Fehlberg integration. -
RUNGEKUTTACASHCARP
Runge-Kutta-Cash-Carp integration.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Returns the value from DSOL-1 before enum was introduced.- Returns:
- int; the value from DSOL-1 before enum was introduced
-
getIntegratorClass
Get the integrator class belonging to the name.- Returns:
- Class<? extends NumericalIntegrator>; the class of the integrator
-
getInstance
Get an instance of the integrator.- Parameters:
stepSize
- double; the starting step size to useequation
- DifferentialEquationInterface; the differential equation- Returns:
- the integrator
-