public class CrossoverDefaultImpl extends java.lang.Object implements Crossover<HigherOrderMutant>
This class does crossover to HigherOrderMutant
s as one of the
operations done by the GeneticAlgorithm
.
It can crossover HigherOrderMutant
s only as they contains a set of
FirstOrderMutant
s
Takes two HigherOrderMutant
s and swaps their
FirstOrderMutant
s.
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>