|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HardAndSoftScore
A HardAndSoftScore is a Score based on hard and soft int constraints. Hard constraints have priority over soft constraints.
Implementations must be immutable.
Score,
DefaultHardAndSoftScore| Method Summary | |
|---|---|
int |
getHardScore()
The total of the broken negative hard constraints and fulfilled positive hard constraints. |
int |
getSoftScore()
The total of the broken negative soft constraints and fulfilled positive soft constraints. |
boolean |
isFeasible()
A Solution is feasible if it has no broken hard constraints. |
| 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 |
|---|
int getHardScore()
int getSoftScore()
boolean isFeasible()
Solution is feasible if it has no broken hard constraints.
getHardScore() is 0 or higher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||