weka.classifiers.immune.airs.algorithm
Class CellPool.ResourceComparator

java.lang.Object
  extended by weka.classifiers.immune.airs.algorithm.CellPool.ResourceComparator
All Implemented Interfaces:
java.util.Comparator<Cell>
Enclosing class:
CellPool

public static class CellPool.ResourceComparator
extends java.lang.Object
implements java.util.Comparator<Cell>


Constructor Summary
CellPool.ResourceComparator()
           
 
Method Summary
 int compare(Cell o1, Cell o2)
          Compare cells based on numResources.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CellPool.ResourceComparator

public CellPool.ResourceComparator()
Method Detail

compare

public int compare(Cell o1,
                   Cell o2)
Compare cells based on numResources. Orders cells in decending order, meaning the most resources members are at the beginning of the array

Specified by:
compare in interface java.util.Comparator<Cell>
Parameters:
o1 -
o2 -
Returns: