public class TreeComparatorByFitness extends java.lang.Object implements java.util.Comparator<NAryTree>
Constructor and Description |
---|
TreeComparatorByFitness(CentralRegistry registry,
boolean fittestFirst,
TreeFitnessInfo... dimensions) |
Modifier and Type | Method and Description |
---|---|
int |
compare(NAryTree tree1,
NAryTree tree2) |
public TreeComparatorByFitness(CentralRegistry registry, boolean fittestFirst, TreeFitnessInfo... dimensions)
registry
- fittestFirst
- if TRUE orders fit -> less fit, if FALSE you get the worst
candidates firstdimensions
- The dimensions in the order as they should be used in the
sorting!!!