org.jactr.core.module.procedural.four
Class ProductionGainComparator

java.lang.Object
  extended by org.jactr.core.module.procedural.four.ProductionGainComparator
All Implemented Interfaces:
java.util.Comparator<IProduction>

public class ProductionGainComparator
extends java.lang.Object
implements java.util.Comparator<IProduction>

Description of the Class

Author:
harrison

Constructor Summary
ProductionGainComparator(boolean randomTieBreaks)
          Constructor for the ProductionGainComparator object
 
Method Summary
 int compare(IProduction one, IProduction two)
          Description of the Method
 boolean equals(java.lang.Object one)
          Description of the Method
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductionGainComparator

public ProductionGainComparator(boolean randomTieBreaks)
Constructor for the ProductionGainComparator object

Parameters:
randomTieBreaks - Description of the Parameter
Method Detail

compare

public int compare(IProduction one,
                   IProduction two)
Description of the Method

Specified by:
compare in interface java.util.Comparator<IProduction>
Parameters:
one - Description of the Parameter
two - Description of the Parameter
Returns:
Description of the Return Value

equals

public boolean equals(java.lang.Object one)
Description of the Method

Specified by:
equals in interface java.util.Comparator<IProduction>
Overrides:
equals in class java.lang.Object
Parameters:
one - Description of the Parameter
Returns:
Description of the Return Value