JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class ChromosomeXoverWithMutation

java.lang.Object
  extended bygov.nasa.javaGenes.core.ChildMaker
      extended bygov.nasa.javaGenes.forceFields.ChromosomeIntervalCrossover
          extended bygov.nasa.javaGenes.forceFields.ChromosomeXoverWithMutation
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ChromosomeXoverWithMutation
extends ChromosomeIntervalCrossover

See Also:
Serialized Form

Field Summary
protected  double mutationProbability
           
protected  ChromosomeMutation mutator
           
 
Fields inherited from class gov.nasa.javaGenes.forceFields.ChromosomeIntervalCrossover
alleles, extension, limitToOriginalInterval
 
Fields inherited from class gov.nasa.javaGenes.core.ChildMaker
cumulative, forEvolution, last
 
Constructor Summary
ChromosomeXoverWithMutation(AlleleTemplate inAlleles, double inMutationProbability, double standardDeviation, double alleleFrequency)
           
 
Method Summary
 Evolvable[] makeChildren(Evolvable[] parents)
          Defaults to mutation, any subclass wanting more than one parent must over-ride.
 void setLimitToOriginalInterval(boolean limit)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.forceFields.ChromosomeIntervalCrossover
getNewChromosome, numberOfParents, setExtension
 
Methods inherited from class gov.nasa.javaGenes.core.ChildMaker
checkLastResults, checkResults, clearLast, getAndClearLastTabSeparatedResults, getFitnessFunctionNames, getLastTabSeparatedResults, headerFragment, makeChildren, mutate, neverUsed, proportionDown, results, setFitnessFunction, setFitnessFunctionNames, subClassMeasures, tabSeparatedResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mutator

protected ChromosomeMutation mutator

mutationProbability

protected double mutationProbability
Constructor Detail

ChromosomeXoverWithMutation

public ChromosomeXoverWithMutation(AlleleTemplate inAlleles,
                                   double inMutationProbability,
                                   double standardDeviation,
                                   double alleleFrequency)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class ChromosomeIntervalCrossover

makeChildren

public Evolvable[] makeChildren(Evolvable[] parents)
Description copied from class: ChildMaker
Defaults to mutation, any subclass wanting more than one parent must over-ride. Mutators can over-ride mutate(Evovlable)

Overrides:
makeChildren in class ChromosomeIntervalCrossover

setLimitToOriginalInterval

public void setLimitToOriginalInterval(boolean limit)
Overrides:
setLimitToOriginalInterval in class ChromosomeIntervalCrossover

JavaGenes, NASA Ames. Written largely by Al Globus