public class MaximizeScoreComp extends AbstractGenomeComparator implements java.io.Serializable
| Constructor and Description |
|---|
MaximizeScoreComp() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Genome p1,
Genome p2) |
boolean |
isBetterThan(Genome prg,
Genome betterThan)
Determine if one genome is better than the other genome.
|
boolean |
shouldMinimize() |
applyBonus, applyPenalty, isBetterThanpublic int compare(Genome p1, Genome p2)
compare in interface java.util.Comparator<Genome>public boolean isBetterThan(Genome prg, Genome betterThan)
isBetterThan in interface GenomeComparatorprg - The first genome.betterThan - The second genome.public boolean shouldMinimize()
shouldMinimize in interface GenomeComparator