public class CrossoverDefaultImpl extends java.lang.Object implements Crossover<HigherOrderMutant>
This class does crossover to HigherOrderMutants as one of the
operations done by the GeneticAlgorithm.
It can crossover HigherOrderMutants only as they contains a set of
FirstOrderMutants
Takes two HigherOrderMutants and swaps their
FirstOrderMutants.
Example:
HOM_1 : FOM_1_1, FOM_1_2
HOM_2 : FOM_2_1, FOM_2_2
result :
HOM_1 : FOM_1_1, FOM_2_2
HOM_2 : FOM_2_1, FOM_1_2
| Constructor and Description |
|---|
CrossoverDefaultImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HigherOrderMutant> |
crossover(HigherOrderMutant firstMutant,
HigherOrderMutant secondMutant) |
public java.util.List<HigherOrderMutant> crossover(HigherOrderMutant firstMutant, HigherOrderMutant secondMutant)
crossover in interface Crossover<HigherOrderMutant>