OptaPlanner core 6.0.0.Beta3

org.optaplanner.core.api.score.holder
Interface ScoreHolder

All Known Implementing Classes:
AbstractScoreHolder, BendableScoreHolder, HardMediumSoftScoreHolder, HardSoftBigDecimalScoreHolder, HardSoftDoubleScoreHolder, HardSoftLongScoreHolder, HardSoftScoreHolder, SimpleBigDecimalScoreHolder, SimpleDoubleScoreHolder, SimpleLongScoreHolder, SimpleScoreHolder

public interface ScoreHolder

This class is injected as a global by DroolsScoreDirector into the Drools DRL. Other ScoreDirector implementations do not use this class.

See Also:
AbstractScoreHolder

Method Summary
 Score extractScore()
          Extracts the Score, calculated by the KieSession for DroolsScoreDirector.
 Collection<ConstraintMatchTotal> getConstraintMatchTotals()
           
 boolean isConstraintMatchEnabled()
           
 

Method Detail

extractScore

Score extractScore()
Extracts the Score, calculated by the KieSession for DroolsScoreDirector.

Should not be called directly, use ScoreDirector.calculateScore() instead.

Returns:
never null, the Score of the working Solution

isConstraintMatchEnabled

boolean isConstraintMatchEnabled()

getConstraintMatchTotals

Collection<ConstraintMatchTotal> getConstraintMatchTotals()

OptaPlanner core 6.0.0.Beta3

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.