net.sf.myra.datamining
Class IterationTest

java.lang.Object
  extended by net.sf.myra.datamining.IterationTest
All Implemented Interfaces:
net.sf.myra.framework.StopCondition

public class IterationTest
extends java.lang.Object
implements net.sf.myra.framework.StopCondition

This class represents the iteration stop condition. It tests if the colony of ants have reach a specified number of iterations.

Version:
$Revision$ $Date: 2008-02-08 15:54:20#$
Author:
Fernando Esteban Barril Otero

Field Summary
static int DEFAULT_MAXIMUM_ITERATIONS
          The default number of iterations.
static java.lang.String MAXIMUM_ITERATIONS
          The property key under which the maximum iteration value is stored.
 
Constructor Summary
IterationTest()
          Creates a new IterationTest instance.
IterationTest(int maximum)
          Creates a new IterationTest instance.
 
Method Summary
 boolean isReached(net.sf.myra.framework.Environment environment)
           
 
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 maximum iteration value is stored.

See Also:
Constant Field Values

DEFAULT_MAXIMUM_ITERATIONS

public static final int DEFAULT_MAXIMUM_ITERATIONS
The default number of iterations.

See Also:
Constant Field Values
Constructor Detail

IterationTest

public IterationTest()
Creates a new IterationTest instance.


IterationTest

public IterationTest(int maximum)
Creates a new IterationTest instance.

Parameters:
maximum - the maximum number of iterations.
Method Detail

isReached

public boolean isReached(net.sf.myra.framework.Environment environment)
Specified by:
isReached in interface net.sf.myra.framework.StopCondition


Copyright © 2013. All Rights Reserved.