org.encog.solve.genetic
Class MateWorker
java.lang.Object
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.
|
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 |
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.
run
public void run()
- Mate the two chromosomes.
- Specified by:
run in interface EngineTask
Copyright © 2011. All Rights Reserved.