Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core
Interface IIndividualComparator

All Superinterfaces:
java.util.Comparator
All Known Subinterfaces:
IFitnessComparator, IScoreComparator
All Known Implementing Classes:
AbstractFitnessComparator, AbstractIndividualComparator, AbstractScoreComparator

public interface IIndividualComparator
extends java.util.Comparator

Interface for an individual comparator. Such comparators are used in genetic operators to determine which individuals are better than others in terms of their target objective value, fitness or other criteria.

Since:
0.4.0
Version:
$Revision: 1.4 $ $Date: 2004/05/26 11:57:54 $
Author:
Andreas Rummler

Method Summary
 int compare(IIndividual i0, IIndividual i1)
          Compares two individuals.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

compare

public int compare(IIndividual i0,
                   IIndividual i1)
Compares two individuals. This method compares two individuals and returns the following result: a number smaller than 0 if the individual is better than the second one, 0 if both individual are equal in terms of their quality and a number greater than 0 if the second one is better.

Parameters:
i0 - first individual
i1 - second individual
Returns:
result of the comparison according to the rules given above

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems