|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmetal.util.comparators.DistanceToPopulationComparator
public class DistanceToPopulationComparator
This class implements a Comparator
(a method for comparing
Solution
objects) based on the euclidean distance to a
solution set. This distances are obtained through the method
getDistanceToPopulation
.
Constructor Summary
DistanceToPopulationComparator()
Method Summary
int
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two solutions.
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
DistanceToPopulationComparator
public DistanceToPopulationComparator()
Method Detail
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Compares two solutions.
- Specified by:
compare
in interface java.util.Comparator
- Parameters:
o1
- Object representing the first Solution
.o2
- Object representing the second Solution
.
- Returns:
- -1, or 0, or 1 if o1 is less than, equal, or greater than o2,
respectively.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD