public class PreferenceSortingComparator<T extends Chromosome> extends Object implements Comparator<Object>
Comparator (a method for comparing Chromosomes objects)
based on the dominance test and considering the specified test goals only.| Constructor and Description |
|---|
PreferenceSortingComparator(FitnessFunction<T> goals)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object object1,
Object object2)
Compares two test cases focusing only on the goals in
MOSADominanceComparator.objectives". |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic PreferenceSortingComparator(FitnessFunction<T> goals)
pNumberOfObjectives - goals - set of test goals to consider when computing the dominance relationshipapplySecondaryCriterion - public int compare(Object object1, Object object2)
MOSADominanceComparator.objectives".compare in interface Comparator<Object>object1 - Object representing the first test cases.object2 - Object representing the second test cases.Copyright © 2010–2017 EvoSuite. All rights reserved.