org.drools.planner.core.score.buildin.simple
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, toDoubleLevels
 
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


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.