org.drools.planner.core.score.buildin.simpledouble
Interface SimpleDoubleScore

All Superinterfaces:
Comparable<SimpleDoubleScore>, Score<SimpleDoubleScore>
All Known Implementing Classes:
DefaultSimpleDoubleScore

public interface SimpleDoubleScore
extends Score<SimpleDoubleScore>

A SimpleScore is a Score based on double constraints.

Implementations must be immutable.

See Also:
Score, DefaultDoubleSimpleScore

Method Summary
 double 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

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