org.dbe.eve.ga.impl
Class DefaultGeneticAlgorithmImpl

java.lang.Object
  extended by org.dbe.eve.ga.impl.DefaultGeneticAlgorithmImpl
All Implemented Interfaces:
GeneticAlgorithm

public class DefaultGeneticAlgorithmImpl
extends java.lang.Object
implements GeneticAlgorithm

Default Generic Algorith Implementation. Only to play with it This implementation should only be used to test that all work fine and, maybe, to implement a first "silly" solution. TODO: After this, and when GOOD Factorys has been provided we can destroy this class

Author:
bob

Constructor Summary
DefaultGeneticAlgorithmImpl()
           
 
Method Summary
 SolutionSet getSolutions()
          Return the solutions stored at the moment.
 void start(FitnessFunction function, StopCondition condition, ServicePool pool)
          Start the Genetic Algorithm using the indicated Fitness function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGeneticAlgorithmImpl

public DefaultGeneticAlgorithmImpl()
Method Detail

start

public void start(FitnessFunction function,
                  StopCondition condition,
                  ServicePool pool)
Description copied from interface: GeneticAlgorithm
Start the Genetic Algorithm using the indicated Fitness function. The evalutation will finish when one of the StopCondicion will be acomplished. TODO: At the moment is not necessary, but in the future this "start" method must start or restart the evaluation of a new Thread, so the evaluation can run in background

Specified by:
start in interface GeneticAlgorithm
Parameters:
function - fitnessFuncion
condition - stop condition
pool - ServicePool to be used for this GA run
See Also:
GeneticAlgorithm

getSolutions

public SolutionSet getSolutions()
Description copied from interface: GeneticAlgorithm
Return the solutions stored at the moment. Notice that the GeneticAlgorithm can be still running an probably best solutions can be found later

Specified by:
getSolutions in interface GeneticAlgorithm
Returns:
the solution set
See Also:
GeneticAlgorithm