es.udc.gii.common.eaf.stoptest
Class SimpleStopTest
java.lang.Object
es.udc.gii.common.eaf.stoptest.SimpleStopTest
- All Implemented Interfaces:
- Configurable, StopTest
- Direct Known Subclasses:
- BestMeanConvergence, BitwiseConvergence, EvolveGenerationsStopTest, FEsStopTest, PerformanceFitnessStopTest
public abstract class SimpleStopTest
- extends java.lang.Object
- implements StopTest
This abstract class implements the interface StopTest. This concrete
implementation represents a test with a simple objective. This means that
it's an unique objective and it isn't made up by more than one objectives.
To implement a concrete stop test the user must extend this class and
override the methods isReach and configure.
The method isReach implements visitor pattern. It recieve a
parameter representing the running algorithm and from it obtain necessary
values to test if the objective is reached or not. This method returns
true when the algorithm reach the objective and false in
other case.
The method configure is the one wich configure a concrete stop
test. It recieve a Configuration
object with the configuration values of the specific class.
This parameteres are read from a configuration file and
parameters' names will match with the name of an atribute of the concrete
stop test. For instance, with a XML configuration file the stop test
configuration must be like this:
<StopTest>
<Class>es.udc.gii.common.eaf.stopTest.EvolveGenerationsStopTest</Class>
<Generations>1000</Generations>
</StopTest>
- Since:
- 1.0
- Author:
- Grupo Integrado de IngenierĂa (www.gii.udc.es)
Constructor Summary |
SimpleStopTest()
Creates a new instance of SimpleStopTest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface es.udc.gii.common.eaf.stoptest.StopTest |
isReach |
SimpleStopTest
public SimpleStopTest()
- Creates a new instance of SimpleStopTest