|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.stoptest.SimpleStopTest
es.udc.gii.common.eaf.stoptest.PerformanceFitnessStopTest
public class PerformanceFitnessStopTest
This class implements the abstract class SimpleStopTest. To reach the implemented objective in this class the fitness value of the best population individual must reach a value specified on the configuration file. To use and configure this stop test, you must add the following xml code in the appropriate section of the configuration file:
<StopTest>
<Class>es.udc.gii.common.eaf.stoptest.PerformanceFitnessStopTest</Class>
<Goal>value</Goal>
</StopTest>
Field Summary | |
---|---|
private double |
goal
This attribute represents the desired fitness value that has to reach an algorithm to finish its execution. |
Constructor Summary | |
---|---|
PerformanceFitnessStopTest()
Creates a new instance of PerformanceFitnessStopTest |
|
PerformanceFitnessStopTest(double goal)
Creates a new instance of PerformanceFitnessStopTest |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configure this stop test. |
boolean |
isReach(EvolutionaryAlgorithm algorithm)
Implements the method isReach. |
java.lang.String |
toString()
Returns a String representing this objective. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private double goal
Constructor Detail |
---|
public PerformanceFitnessStopTest()
public PerformanceFitnessStopTest(double goal)
goal
- Represents the fitness value that has to reach an algorithm to finish its
execution.Method Detail |
---|
public void configure(org.apache.commons.configuration.Configuration conf)
configure
in interface Configurable
conf
- Configuration object which contains the configuration values.Configuration
public boolean isReach(EvolutionaryAlgorithm algorithm)
isReach
in interface StopTest
algorithm
- The algorithm wich has to reach the objective
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |