org.optaplanner.core.api.score.buildin.simple
Class SimpleScoreHolder
java.lang.Object
org.optaplanner.core.api.score.holder.AbstractScoreHolder
org.optaplanner.core.api.score.buildin.simple.SimpleScoreHolder
- All Implemented Interfaces:
- Serializable, ScoreHolder
public class SimpleScoreHolder
- extends AbstractScoreHolder
- See Also:
SimpleScore
,
Serialized Form
Field Summary |
protected int |
score
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
score
protected int score
SimpleScoreHolder
public SimpleScoreHolder(boolean constraintMatchEnabled)
getScore
public int getScore()
setScore
@Deprecated
public void setScore(int score)
- Deprecated.
addConstraintMatch
public void addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int weight)
extractScore
public Score extractScore()
- Description copied from interface:
ScoreHolder
- 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
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.