org.encog.solve.genetic
Class MateWorker

java.lang.Object
  extended by org.encog.solve.genetic.MateWorker
All Implemented Interfaces:
EngineTask

public class MateWorker
extends Object
implements EngineTask

This class is used in conjunction with a thread pool. This allows the genetic algorithm to offload all of those calculations to a thread pool.


Constructor Summary
MateWorker(Genome mother, Genome father, Genome child1, Genome child2)
           
 
Method Summary
 void run()
          Mate the two chromosomes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MateWorker

public MateWorker(Genome mother,
                  Genome father,
                  Genome child1,
                  Genome child2)
Parameters:
mother - The mother.
father - The father.
child1 - The first child.
child2 - The second child.
Method Detail

run

public void run()
Mate the two chromosomes.

Specified by:
run in interface EngineTask


Copyright © 2011. All Rights Reserved.