diff --git a/src/main/java/org/apache/commons/math4/ode/AbstractFieldIntegrator.java b/src/main/java/org/apache/commons/math4/ode/AbstractFieldIntegrator.java index 81f408513..d741de5fd 100644 --- a/src/main/java/org/apache/commons/math4/ode/AbstractFieldIntegrator.java +++ b/src/main/java/org/apache/commons/math4/ode/AbstractFieldIntegrator.java @@ -108,26 +108,31 @@ public abstract class AbstractFieldIntegrator> imp } /** {@inheritDoc} */ + @Override public String getName() { return name; } /** {@inheritDoc} */ + @Override public void addStepHandler(final FieldStepHandler handler) { stepHandlers.add(handler); } /** {@inheritDoc} */ + @Override public Collection> getStepHandlers() { return Collections.unmodifiableCollection(stepHandlers); } /** {@inheritDoc} */ + @Override public void clearStepHandlers() { stepHandlers.clear(); } /** {@inheritDoc} */ + @Override public void addEventHandler(final FieldEventHandler handler, final double maxCheckInterval, final double convergence, @@ -141,6 +146,7 @@ public abstract class AbstractFieldIntegrator> imp } /** {@inheritDoc} */ + @Override public void addEventHandler(final FieldEventHandler handler, final double maxCheckInterval, final double convergence, @@ -151,6 +157,7 @@ public abstract class AbstractFieldIntegrator> imp } /** {@inheritDoc} */ + @Override public Collection> getEventHandlers() { final List> list = new ArrayList>(eventsStates.size()); for (FieldEventState state : eventsStates) { @@ -160,31 +167,37 @@ public abstract class AbstractFieldIntegrator> imp } /** {@inheritDoc} */ + @Override public void clearEventHandlers() { eventsStates.clear(); } /** {@inheritDoc} */ + @Override public FieldODEStateAndDerivative getCurrentStepStart() { return stepStart; } /** {@inheritDoc} */ + @Override public T getCurrentSignedStepsize() { return stepSize; } /** {@inheritDoc} */ + @Override public void setMaxEvaluations(int maxEvaluations) { evaluations = evaluations.withMaximalCount((maxEvaluations < 0) ? Integer.MAX_VALUE : maxEvaluations); } /** {@inheritDoc} */ + @Override public int getMaxEvaluations() { return evaluations.getMaximalCount(); } /** {@inheritDoc} */ + @Override public int getEvaluations() { return evaluations.getCount(); } @@ -294,6 +307,7 @@ public abstract class AbstractFieldIntegrator> imp SortedSet> occurringEvents = new TreeSet>(new Comparator>() { /** {@inheritDoc} */ + @Override public int compare(FieldEventState es0, FieldEventState es1) { return orderingSign * Double.compare(es0.getEventTime().getReal(), es1.getEventTime().getReal()); } diff --git a/src/main/java/org/apache/commons/math4/ode/ContinuousOutputFieldModel.java b/src/main/java/org/apache/commons/math4/ode/ContinuousOutputFieldModel.java index e9a1a29c8..e8b96a1a7 100644 --- a/src/main/java/org/apache/commons/math4/ode/ContinuousOutputFieldModel.java +++ b/src/main/java/org/apache/commons/math4/ode/ContinuousOutputFieldModel.java @@ -176,6 +176,7 @@ public class ContinuousOutputFieldModel> } /** {@inheritDoc} */ + @Override public void init(final FieldODEStateAndDerivative initialState, final T t) { initialTime = initialState.getTime(); finalTime = t; diff --git a/src/main/java/org/apache/commons/math4/ode/events/FieldEventState.java b/src/main/java/org/apache/commons/math4/ode/events/FieldEventState.java index 49b25bda5..cfbbd4343 100644 --- a/src/main/java/org/apache/commons/math4/ode/events/FieldEventState.java +++ b/src/main/java/org/apache/commons/math4/ode/events/FieldEventState.java @@ -204,6 +204,7 @@ public class FieldEventState> { final RealFieldUnivariateFunction f = new RealFieldUnivariateFunction() { /** {@inheritDoc} */ + @Override public T value(final T t) { return handler.g(interpolator.getInterpolatedState(t)); } diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java index 9b7033130..522530b51 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java @@ -82,6 +82,7 @@ class ClassicalRungeKuttaFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected ClassicalRungeKuttaFieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince54FieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince54FieldStepInterpolator.java index c9495e2c2..16a2fe415 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince54FieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince54FieldStepInterpolator.java @@ -107,6 +107,7 @@ class DormandPrince54FieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected DormandPrince54FieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince853FieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince853FieldStepInterpolator.java index 9f4b2b07d..e4d7ee526 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince853FieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/DormandPrince853FieldStepInterpolator.java @@ -188,6 +188,7 @@ class DormandPrince853FieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected DormandPrince853FieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/EulerFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/EulerFieldStepInterpolator.java index 133e5405c..e57865ac8 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/EulerFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/EulerFieldStepInterpolator.java @@ -72,6 +72,7 @@ class EulerFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected EulerFieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/GillFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/GillFieldStepInterpolator.java index fdb16cbff..bb00d04d6 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/GillFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/GillFieldStepInterpolator.java @@ -90,6 +90,7 @@ class GillFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected GillFieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/HighamHall54FieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/HighamHall54FieldStepInterpolator.java index c5402c202..a915e2648 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/HighamHall54FieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/HighamHall54FieldStepInterpolator.java @@ -58,6 +58,7 @@ class HighamHall54FieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected HighamHall54FieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/LutherFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/LutherFieldStepInterpolator.java index 22bc403f2..438e09e41 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/LutherFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/LutherFieldStepInterpolator.java @@ -118,6 +118,7 @@ class LutherFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected LutherFieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/MidpointFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/MidpointFieldStepInterpolator.java index 5a01a352f..03bd70d84 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/MidpointFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/MidpointFieldStepInterpolator.java @@ -74,6 +74,7 @@ class MidpointFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected MidpointFieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/RungeKuttaFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/RungeKuttaFieldStepInterpolator.java index 9595ee247..20bff1834 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/RungeKuttaFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/RungeKuttaFieldStepInterpolator.java @@ -69,6 +69,7 @@ abstract class RungeKuttaFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected RungeKuttaFieldStepInterpolator create(boolean newForward, FieldODEStateAndDerivative newGlobalPreviousState, FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java index 6faffd1cc..69df7f805 100644 --- a/src/main/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java @@ -84,6 +84,7 @@ class ThreeEighthesFieldStepInterpolator> } /** {@inheritDoc} */ + @Override protected ThreeEighthesFieldStepInterpolator create(final Field newField, final boolean newForward, final T[][] newYDotK, final FieldODEStateAndDerivative newGlobalPreviousState, final FieldODEStateAndDerivative newGlobalCurrentState, diff --git a/src/main/java/org/apache/commons/math4/ode/sampling/AbstractFieldStepInterpolator.java b/src/main/java/org/apache/commons/math4/ode/sampling/AbstractFieldStepInterpolator.java index 0486cefd8..b9a5de210 100644 --- a/src/main/java/org/apache/commons/math4/ode/sampling/AbstractFieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math4/ode/sampling/AbstractFieldStepInterpolator.java @@ -128,16 +128,19 @@ public abstract class AbstractFieldStepInterpolator getPreviousState() { return softPreviousState; } /** {@inheritDoc} */ + @Override public FieldODEStateAndDerivative getCurrentState() { return softCurrentState; } /** {@inheritDoc} */ + @Override public FieldODEStateAndDerivative getInterpolatedState(final T time) { final T thetaH = time.subtract(globalPreviousState.getTime()); final T oneMinusThetaH = globalCurrentState.getTime().subtract(time); @@ -146,6 +149,7 @@ public abstract class AbstractFieldStepInterpolator> implements Field } /** {@inheritDoc} */ + @Override public void init(final FieldODEStateAndDerivative initialState, final T finalTime) { first = null;