|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.algorithm.fitness.comparator.FitnessComparator<T>
es.udc.gii.common.eaf.algorithm.fitness.comparator.DominanceComparator<T>
public class DominanceComparator<T extends Individual>
This class implements a comparator for comparing two instances i1 and i2 of Individual based on their dominance.
Constructor Summary | |
---|---|
DominanceComparator()
Creates a new instance of DominanceComparator |
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
Compares two individuals based on their dominance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public DominanceComparator()
Method Detail |
---|
public int compare(T o1, T o2)
compare
in interface java.util.Comparator<T extends Individual>
compare
in class FitnessComparator<T extends Individual>
o1
- First individual to compare.o2
- Second individual to compare.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |