You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2008/07/14 16:58:59 UTC

svn commit: r676612 - in /commons/proper/math/branches/MATH_2_0/src: java/org/apache/commons/math/ode/sampling/FixedStepHandler.java site/xdoc/changes.xml test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java

Author: luc
Date: Mon Jul 14 07:58:57 2008
New Revision: 676612

URL: http://svn.apache.org/viewvc?rev=676612&view=rev
Log:
FixedStepHandler now extends Serializable.
This should have been done before when the integrator and problem
interfaces were changed too, but was forgotten.

Modified:
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java
    commons/proper/math/branches/MATH_2_0/src/site/xdoc/changes.xml
    commons/proper/math/branches/MATH_2_0/src/test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java?rev=676612&r1=676611&r2=676612&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java (original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/FixedStepHandler.java Mon Jul 14 07:58:57 2008
@@ -17,6 +17,8 @@
 
 package org.apache.commons.math.ode.sampling;
 
+import java.io.Serializable;
+
 import org.apache.commons.math.ode.DerivativeException;
 
 /**
@@ -38,7 +40,7 @@
  * @since 1.2
  */
 
-public interface FixedStepHandler {
+public interface FixedStepHandler extends Serializable {
 
   /**
    * Handle the last accepted step

Modified: commons/proper/math/branches/MATH_2_0/src/site/xdoc/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/site/xdoc/changes.xml?rev=676612&r1=676611&r2=676612&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/site/xdoc/changes.xml (original)
+++ commons/proper/math/branches/MATH_2_0/src/site/xdoc/changes.xml Mon Jul 14 07:58:57 2008
@@ -82,9 +82,9 @@
         in RealMatrixImpl and BigMatrixImpl classes.
       </action>
       <action dev="luc" type="update">
-        The FirstOrderDifferentialEquations and FirstOrderIntegrator
-        interfaces now extends Serializable, allowing integrators and
-        problems to be embedded into users Serializable classes.
+        The FirstOrderDifferentialEquations, FirstOrderIntegrator and FixedStepHandler
+        interfaces now extends Serializable, allowing integrators, problems and
+        handlers to be embedded into users Serializable classes.
       </action>
       <action dev="luc" type="add">
         Added several convenience methods for Vector3D and Rotation.

Modified: commons/proper/math/branches/MATH_2_0/src/test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java?rev=676612&r1=676611&r2=676612&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java (original)
+++ commons/proper/math/branches/MATH_2_0/src/test/org/apache/commons/math/ode/sampling/StepNormalizerTest.java Mon Jul 14 07:58:57 2008
@@ -42,7 +42,8 @@
     setLastSeen(false);
     integ.addStepHandler(new StepNormalizer(range / 10.0,
                                        new FixedStepHandler() {
-                                         private boolean firstCall = true;
+                                        private static final long serialVersionUID = 1650337364641626444L;
+                                        private boolean firstCall = true;
                                          public void handleStep(double t,
                                                                 double[] y,
                                                                 double[] yDot,
@@ -69,7 +70,8 @@
     setLastSeen(false);
     integ.addStepHandler(new StepNormalizer(range / 10.5,
                                        new FixedStepHandler() {
-                                         public void handleStep(double t,
+                                        private static final long serialVersionUID = 2228457391561277298L;
+                                        public void handleStep(double t,
                                                                 double[] y,
                                                                 double[] yDot,
                                                                 boolean isLast) {