|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectEvolutionEngine<T>
public class EvolutionEngine<T>
The main class that will drive the process of evolution with the help of other classes. For the sake of configurability and code maintainability, it delegates its tasks to various sub-Engines.
Constructor Summary | |
---|---|
EvolutionEngine(File configFile,
AmibaFactory<T> factory)
Use the configuration file and the AmibaFactory to build this engine. |
Method Summary | |
---|---|
Population<T> |
evolve()
evolve the defualt FixedNumberPopulation |
void |
evolve(Population<T> population)
evolve the given population |
static void |
main(String[] args)
|
boolean |
stopEvolution(Population<T> population)
a hook to halt the process of evolution midway. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvolutionEngine(File configFile, AmibaFactory<T> factory) throws AmibaException
configFile
- the configuration filefactory
- the factory
AmibaException
Method Detail |
---|
public Population<T> evolve() throws AmibaException
AmibaException
public void evolve(Population<T> population) throws AmibaException
population
-
AmibaException
public boolean stopEvolution(Population<T> population)
population
-
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |