|
||||||||||
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.EvolveGenerationsStopTest
public class EvolveGenerationsStopTest
Concrete simple objective. The problem must complete a number of given generations.
<StopTest>
<Class>es.udc.gii.common.eaf.stoptest.EvolveGenerationsStopTest</Class>
<Generations>value</Generations>
</StopTest>
Field Summary | |
---|---|
private int |
generations
Number of generations that a problem has to reach. |
Constructor Summary | |
---|---|
EvolveGenerationsStopTest()
Creates a new instance of EvolveGenerationsStopTest |
|
EvolveGenerationsStopTest(int generations)
Create a new instance of EvoleGenerationsObjective. |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configure this stop test. |
int |
getGenerations()
Returns the number of generations that the algorithm will run. |
boolean |
isReach(EvolutionaryAlgorithm algorithm)
Returns true if the problem had done the generation's number determined by this concrete objective. |
void |
setGenerations(int generations)
Set the value of the number of generations that the algorithm will run. |
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 int generations
Constructor Detail |
---|
public EvolveGenerationsStopTest()
public EvolveGenerationsStopTest(int generations)
generations
- Generations' number that a concrete problem has to reach.Method Detail |
---|
public void configure(org.apache.commons.configuration.Configuration conf)
configure
in interface Configurable
conf
- Configuration object which contains the configuration values.public boolean isReach(EvolutionaryAlgorithm algorithm)
isReach
in interface StopTest
algorithm
- the algorithm wich has to reach the objective
public int getGenerations()
public void setGenerations(int generations)
generations
- new number of generations.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 |