org.drools.planner.core.localsearch.decider.deciderscorecomparator
Class HardPenaltyDeciderScoreComparator
java.lang.Object
org.drools.planner.core.localsearch.decider.deciderscorecomparator.HardPenaltyDeciderScoreComparator
- All Implemented Interfaces:
- Comparator<Score>
public class HardPenaltyDeciderScoreComparator
- extends Object
- implements Comparator<Score>
Compares 2 HardAndSoftScore based on the calculation the hard multiplied by a weight to the soft.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HardPenaltyDeciderScoreComparator
public HardPenaltyDeciderScoreComparator(int hardWeight)
getHardWeight
public int getHardWeight()
compare
public int compare(Score s1,
Score s2)
- Specified by:
compare
in interface Comparator<Score>
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.