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
Interface SimpleScore

All Superinterfaces:
  Comparable<SimpleScore>, Score<SimpleScore>

All Known Implementing Classes:
  DefaultSimpleScore

    public interface SimpleScore

extends Score<SimpleScore>

A SimpleScore is a Score based on int constraints.

Implementations must be immutable.

See Also:
  `Score`, `DefaultSimpleScore`

Method Summary
`int` | `getScore()` The total of the broken negative constraints and fulfilled postive hard constraints.

Methods inherited from interface org.drools.planner.core.score.Score
`add, divide, multiply, subtract, toDoubleArray`

Methods inherited from interface java.lang.Comparable
`compareTo`

Method Detail

### getScore

    int getScore()

  The total of the broken negative constraints and fulfilled postive hard constraints. Their weight is included in the total. The score is usually a negative number because most use cases only have negative constraints.

  Returns:
    higher is better, usually negative, 0 if no constraints are broken/fulfilled

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 by Red Hat. All Rights Reserved.