net.sf.myra.antree
Class StagnationTest

java.lang.Object
  extended by net.sf.myra.antree.StagnationTest
All Implemented Interfaces:
ConvergenceTest

public class StagnationTest
extends java.lang.Object
implements ConvergenceTest

Version:
$Revision: 2320 $ $Date:: 2011-01-25 13:06:10#$
Author:
Fernando Esteban Barril Otero

Field Summary
static java.lang.String ITERATIONS
          The property key under which the number of iterations to determine the stagnation of the search is stored.
 
Constructor Summary
StagnationTest()
          Default constructor.
 
Method Summary
 boolean hasConverged(Graph graph, Iteration iteration)
          Tests if the algorithm has converged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITERATIONS

public static final java.lang.String ITERATIONS
The property key under which the number of iterations to determine the stagnation of the search is stored.

See Also:
Constant Field Values
Constructor Detail

StagnationTest

public StagnationTest()
Default constructor.

Method Detail

hasConverged

public boolean hasConverged(Graph graph,
                            Iteration iteration)
Description copied from interface: ConvergenceTest
Tests if the algorithm has converged.

Specified by:
hasConverged in interface ConvergenceTest
iteration - the current iteration.
Returns:
true if the algorithm has converged; false otherwise.


Copyright © 2013. All Rights Reserved.