public class Individual
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
Individual(int max_n_reglas,
int longitud)
Creates an individual containing with a legth equal to "longitud" and having "max_n_reglas" rules
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object a)
Compares the fitness value of two individuals
|
public Individual(int max_n_reglas, int longitud)
Creates an individual containing with a legth equal to "longitud" and having "max_n_reglas" rules
max_n_reglas
- int The number of rules in the individuallongitud
- int The length of the individualpublic int compareTo(java.lang.Object a)
Compares the fitness value of two individuals
compareTo
in interface java.lang.Comparable
a
- Object to compare with.