net.sourceforge.cilib.entity.comparator
Class NaturalOrderFitnessComparator<E extends Entity>

java.lang.Object
  extended by net.sourceforge.cilib.entity.comparator.NaturalOrderFitnessComparator<E>
Type Parameters:
E - The Entity type.
All Implemented Interfaces:
Comparator<E>

public class NaturalOrderFitnessComparator<E extends Entity>
extends Object
implements Comparator<E>

Perform a comparison based on the natural ordering of fitnesses.

Author:
gpampara

Constructor Summary
NaturalOrderFitnessComparator()
           
 
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

NaturalOrderFitnessComparator

public NaturalOrderFitnessComparator()
Method Detail

compare

public int compare(E o1,
                   E o2)

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


Copyright © 2009 CIRG. All Rights Reserved.