removed duplicate strings

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@981248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2010-08-01 15:36:10 +00:00
parent 59a4edb84d
commit df328dbd46
2 changed files with 10 additions and 4 deletions

View File

@ -140,6 +140,9 @@ import org.apache.commons.math.ode.sampling.StepHandler;
*/
public class AdamsBashforthIntegrator extends AdamsIntegrator {
/** Integrator method name. */
private static final String METHOD_NAME = "Adams-Bashforth";
/**
* Build an Adams-Bashforth integrator with the given order and step control parameters.
* @param nSteps number of steps of the method excluding the one being computed
@ -156,7 +159,7 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator {
final double scalAbsoluteTolerance,
final double scalRelativeTolerance)
throws IllegalArgumentException {
super("Adams-Bashforth", nSteps, nSteps, minStep, maxStep,
super(METHOD_NAME, nSteps, nSteps, minStep, maxStep,
scalAbsoluteTolerance, scalRelativeTolerance);
}
@ -176,7 +179,7 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator {
final double[] vecAbsoluteTolerance,
final double[] vecRelativeTolerance)
throws IllegalArgumentException {
super("Adams-Bashforth", nSteps, nSteps, minStep, maxStep,
super(METHOD_NAME, nSteps, nSteps, minStep, maxStep,
vecAbsoluteTolerance, vecRelativeTolerance);
}

View File

@ -157,6 +157,9 @@ import org.apache.commons.math.ode.sampling.StepHandler;
*/
public class AdamsMoultonIntegrator extends AdamsIntegrator {
/** Integrator method name. */
private static final String METHOD_NAME = "Adams-Moulton";
/**
* Build an Adams-Moulton integrator with the given order and error control parameters.
* @param nSteps number of steps of the method excluding the one being computed
@ -173,7 +176,7 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator {
final double scalAbsoluteTolerance,
final double scalRelativeTolerance)
throws IllegalArgumentException {
super("Adams-Moulton", nSteps, nSteps + 1, minStep, maxStep,
super(METHOD_NAME, nSteps, nSteps + 1, minStep, maxStep,
scalAbsoluteTolerance, scalRelativeTolerance);
}
@ -193,7 +196,7 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator {
final double[] vecAbsoluteTolerance,
final double[] vecRelativeTolerance)
throws IllegalArgumentException {
super("Adams-Moulton", nSteps, nSteps + 1, minStep, maxStep,
super(METHOD_NAME, nSteps, nSteps + 1, minStep, maxStep,
vecAbsoluteTolerance, vecRelativeTolerance);
}