net.sourceforge.cilib.entity.comparator
Class SocialBestFitnessComparator<E extends SocialEntity>

java.lang.Object
  extended by 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()

Constructor Summary
SocialBestFitnessComparator()
           
 
Method Summary
 int compare(E o1, E o2)
          
 
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

SocialBestFitnessComparator

public SocialBestFitnessComparator()
Method Detail

compare

public int compare(E o1,
                   E o2)

Specified by:
compare in interface Comparator<E extends SocialEntity>


Copyright © 2009 CIRG. All Rights Reserved.