|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HardAndSoftLongScore
A HardAndSoftScore is a Score based on hard and soft long constraints. Hard constraints have priority over soft constraints.
Implementations must be immutable.
Score,
DefaultHardAndSoftLongScore| Method Summary | |
|---|---|
long |
getHardScore()
The total of the broken negative hard constraints and fulfilled positive hard constraints. |
long |
getSoftScore()
The total of the broken negative soft constraints and fulfilled positive soft constraints. |
boolean |
isFeasible()
|
| Methods inherited from interface org.drools.planner.core.score.Score |
|---|
add, divide, multiply, subtract, toDoubleLevels |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
long getHardScore()
long getSoftScore()
boolean isFeasible()
getHardScore() is 0L or higher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||