Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.planner.core.score.comparator
Class FlatteningHardAndSoftScoreComparator

    java.lang.Object
      org.drools.planner.core.score.comparator.FlatteningHardAndSoftScoreComparator

All Implemented Interfaces:
  Comparator<Score>

    public class FlatteningHardAndSoftScoreComparator

extends Object
implements Comparator<Score>

Compares 2 HardAndSoftScore after flattening: the hard multiplied by a hardWeight gets added to the soft.

Constructor Summary
`FlatteningHardAndSoftScoreComparator(int hardWeight)`

Method Summary
`int` | `compare(Score s1, Score s2)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.util.Comparator
`equals`

Constructor Detail

### FlatteningHardAndSoftScoreComparator

    public FlatteningHardAndSoftScoreComparator(int hardWeight)

Method Detail

### compare

    public int compare(Score s1,
                       Score s2)

  Specified by:
    `compare` in interface `Comparator<Score>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.