ca.quine.jcommons.transform.ga
Class GACorrector

java.lang.Object
  |
  +--ca.quine.jcommons.transform.ga.GACorrector
All Implemented Interfaces:
GAFramework.Corrector

public class GACorrector
extends Object
implements GAFramework.Corrector


Constructor Summary
GACorrector(TransformGraph graph, TransformNode inputNode, String[] outputTypes)
           
 
Method Summary
 Vector repair(Vector fchrom)
          Perform the repair algorithm over the current genetic code and return a feasible chromosome.
 void setBias(double bias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GACorrector

public GACorrector(TransformGraph graph,
                   TransformNode inputNode,
                   String[] outputTypes)
Method Detail

repair

public Vector repair(Vector fchrom)
Description copied from interface: GAFramework.Corrector
Perform the repair algorithm over the current genetic code and return a feasible chromosome.

Specified by:
repair in interface GAFramework.Corrector
Returns:
a new chromosome.

setBias

public void setBias(double bias)