Java tutorial
/********************************************************************************************* * * 'AdamsMoultonSolver.java, in plugin ummisco.gaml.extensions.maths, is part of the source code of the * GAMA modeling and simulation platform. * (c) 2007-2016 UMI 209 UMMISCO IRD/UPMC & Partners * * Visit https://github.com/gama-platform/gama for license information and developers contact. * * **********************************************************************************************/ package ummisco.gaml.extensions.maths.ode.utils.solver; import org.apache.commons.math3.ode.nonstiff.AdamsMoultonIntegrator; import org.apache.commons.math3.ode.sampling.StepHandler; import msi.gama.util.GamaMap; import msi.gama.util.IList; public class AdamsMoultonSolver extends Solver { public StepHandler stepHandler; public AdamsMoultonSolver(final int nSteps, final double minStep, final double maxStep, final double scalAbsoluteTolerance, final double scalRelativeTolerance, final GamaMap<String, IList<Double>> integrated_val) { super((minStep + maxStep) / 2, new AdamsMoultonIntegrator(nSteps, minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance), integrated_val); } }