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

## org.optaplanner.core.impl.score.comparator
Class FlatteningHardSoftScoreComparator

    java.lang.Object
      org.optaplanner.core.impl.score.comparator.FlatteningHardSoftScoreComparator

All Implemented Interfaces:
  Serializable, Comparator<Score>

    public class FlatteningHardSoftScoreComparator

extends Object
implements Comparator<Score>, Serializable

Compares 2 `HardSoftScore`s based on the calculation of the hard multiplied by a weight, summed with the soft.

See Also:
  Serialized Form

Constructor Summary
`FlatteningHardSoftScoreComparator(int hardWeight)`

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

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

### FlatteningHardSoftScoreComparator

    public FlatteningHardSoftScoreComparator(int hardWeight)

Method Detail

### getHardWeight

    public int getHardWeight()

### compare

    public int compare(Score s1,
                       Score s2)

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

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

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.