org.optaplanner.core.api.score.buildin.hardsoftlong
Class HardSoftLongScoreHolder
java.lang.Object
org.optaplanner.core.api.score.holder.AbstractScoreHolder
org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScoreHolder
- All Implemented Interfaces:
- Serializable, ScoreHolder
public class HardSoftLongScoreHolder
- extends AbstractScoreHolder
- See Also:
HardSoftLongScore
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hardScore
protected long hardScore
softScore
protected long softScore
HardSoftLongScoreHolder
public HardSoftLongScoreHolder(boolean constraintMatchEnabled)
getHardScore
public long getHardScore()
setHardScore
@Deprecated
public void setHardScore(long hardScore)
- Deprecated.
getSoftScore
public long getSoftScore()
setSoftScore
@Deprecated
public void setSoftScore(long softScore)
- Deprecated.
addHardConstraintMatch
public void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
long weight)
addSoftConstraintMatch
public void addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
long 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.