org.drools.planner.core.score.buildin.hardmediumsoft
Class HardMediumSoftScoreHolder
java.lang.Object
org.drools.planner.core.score.holder.AbstractScoreHolder
org.drools.planner.core.score.buildin.hardmediumsoft.HardMediumSoftScoreHolder
- All Implemented Interfaces:
- Serializable, ScoreHolder
public class HardMediumSoftScoreHolder
- extends AbstractScoreHolder
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hardScore
protected int hardScore
mediumScore
protected int mediumScore
softScore
protected int softScore
HardMediumSoftScoreHolder
public HardMediumSoftScoreHolder()
getHardScore
public int getHardScore()
setHardScore
public void setHardScore(int hardScore)
getMediumScore
public int getMediumScore()
setMediumScore
public void setMediumScore(int mediumScore)
getSoftScore
public int getSoftScore()
setSoftScore
public void setSoftScore(int softScore)
addHardConstraintMatch
public void addHardConstraintMatch(org.kie.runtime.rule.RuleContext kcontext,
int weight)
addMediumConstraintMatch
public void addMediumConstraintMatch(org.kie.runtime.rule.RuleContext kcontext,
int weight)
addSoftConstraintMatch
public void addSoftConstraintMatch(org.kie.runtime.rule.RuleContext kcontext,
int weight)
extractScore
public Score extractScore()
- Description copied from interface:
ScoreHolder
- Extracts the
Score
, calculated by the WorkingMemory
for DroolsScoreDirector
.
Should not be called directly, use ScoreDirector.calculateScore()
instead.
- Returns:
- never null, the
Score
of the working Solution
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.