public class SimpleCrossOverFunction extends AbstractCrossOverFunction
Simple Implementation of the CrossOverFunction
interface
CrossOverFunction.NoCross
CROSS_PROB, DEFAULT_CROSS_PROB, DEFAULT_MAX_CROSS, MAX_CROSSES, NO_CROSS
Constructor and Description |
---|
SimpleCrossOverFunction() |
Modifier and Type | Method and Description |
---|---|
GACrossResult |
performCrossOver(SymbolList chromA,
SymbolList chromB)
Performs a cross between the pair of chromosomes
|
getCrossOverProbs, getMaxCrossOvers, setCrossOverProbs, setMaxCrossOvers
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public SimpleCrossOverFunction()
public GACrossResult performCrossOver(SymbolList chromA, SymbolList chromB) throws ChangeVetoException
CrossOverFunction
chromA
- The first chromosome in the crosschromB
- The second chromosome in the crossGACross
that holds the results of the crossChangeVetoException
- if the chromosomes are unmodifiableCopyright © 2014 BioJava. All rights reserved.