net.sf.myra.antree
Class IterationTest

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

public class IterationTest
extends java.lang.Object
implements ConvergenceTest

Version:
$Revision: 2329 $ $Date:: 2011-08-02 09:57:44#$
Author:
Fernando Esteban Barril Otero

Field Summary
static java.lang.String MAXIMUM_ITERATIONS
          The property key under which the colony size is stored.
 
Constructor Summary
IterationTest()
          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

MAXIMUM_ITERATIONS

public static final java.lang.String MAXIMUM_ITERATIONS
The property key under which the colony size is stored.

See Also:
Constant Field Values
Constructor Detail

IterationTest

public IterationTest()
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.