net.sourceforge.cilib.entity.comparator
Class SocialBestFitnessComparator<E extends SocialEntity>
java.lang.Object
net.sourceforge.cilib.entity.comparator.SocialBestFitnessComparator<E>
- Type Parameters:
E
- The SocialEntity
type.
- All Implemented Interfaces:
- Comparator<E>
public class SocialBestFitnessComparator<E extends SocialEntity>
- extends Object
- implements Comparator<E>
Compare two SocialEntity
instances, based on the available social best
fitness.
- Author:
- gpampara
- See Also:
SocialEntity.getSocialBestFitness()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocialBestFitnessComparator
public SocialBestFitnessComparator()
compare
public int compare(E o1,
E o2)
-
- Specified by:
compare
in interface Comparator<E extends SocialEntity>
Copyright © 2009 CIRG. All Rights Reserved.