Author: luc
Date: Fri Jul  1 12:44:26 2011
New Revision: 1141920

URL: http://svn.apache.org/viewvc?rev=1141920&view=rev
Log:
renamed BracketedSolution into BracketedUnivariateRealSolver and make it extend 
UnivariateRealSolver.

This will allow specifying directly a sub-category of solvers when needed. It 
will be used for example by the ODE events detection mechanism, as it will 
ensure the integrator can automatically go past the event time.

JIRA: MATH-605

Modified:
    
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java

Modified: 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java?rev=1141920&r1=1141919&r2=1141920&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java
 (original)
+++ 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java
 Fri Jul  1 12:44:26 2011
@@ -162,8 +162,8 @@ public abstract class BaseSecantSolverAb
     public void testSolutionLeftSide() {
         UnivariateRealFunction f = new SinFunction();
         UnivariateRealSolver solver = getSolver();
-        if (!(solver instanceof BracketedSolution)) return;
-        
((BracketedSolution)solver).setAllowedSolutions(AllowedSolutions.LEFT_SIDE);
+        if (!(solver instanceof BracketedUnivariateRealSolver)) return;
+        
((BracketedUnivariateRealSolver)solver).setAllowedSolutions(AllowedSolutions.LEFT_SIDE);
         double left = -1.5;
         double right = 0.05;
         for(int i = 0; i < 10; i++) {
@@ -181,8 +181,8 @@ public abstract class BaseSecantSolverAb
     public void testSolutionRightSide() {
         UnivariateRealFunction f = new SinFunction();
         UnivariateRealSolver solver = getSolver();
-        if (!(solver instanceof BracketedSolution)) return;
-        
((BracketedSolution)solver).setAllowedSolutions(AllowedSolutions.RIGHT_SIDE);
+        if (!(solver instanceof BracketedUnivariateRealSolver)) return;
+        
((BracketedUnivariateRealSolver)solver).setAllowedSolutions(AllowedSolutions.RIGHT_SIDE);
         double left = -1.5;
         double right = 0.05;
         for(int i = 0; i < 10; i++) {


Reply via email to