org.encog.ml.genetic
Class MateWorker

java.lang.Object
  extended by org.encog.ml.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 theMother, Genome theFather, Genome theChild1, Genome theChild2)
           
 
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 theMother,
                  Genome theFather,
                  Genome theChild1,
                  Genome theChild2)
Parameters:
theMother - The mother.
theFather - The father.
theChild1 - The first child.
theChild2 - The second child.
Method Detail

run

public final void run()
Mate the two chromosomes.

Specified by:
run in interface EngineTask


Copyright © 2012. All Rights Reserved.