Class HardSoftBigDecimalScoreInliner
- java.lang.Object
-
- org.optaplanner.core.impl.score.inliner.ScoreInliner<HardSoftBigDecimalScore>
-
- org.optaplanner.core.impl.score.buildin.hardsoftbigdecimal.HardSoftBigDecimalScoreInliner
-
public final class HardSoftBigDecimalScoreInliner extends ScoreInliner<HardSoftBigDecimalScore>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.inliner.ScoreInliner
constraintMatchEnabled
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HardSoftBigDecimalScoreInliner(Map<Constraint,HardSoftBigDecimalScore> constraintToWeightMap, boolean constraintMatchEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightedScoreImpacter
buildWeightedScoreImpacter(Constraint constraint)
Create a new instance ofWeightedScoreImpacter
for a particular constraint.HardSoftBigDecimalScore
extractScore(int initScore)
String
toString()
-
Methods inherited from class org.optaplanner.core.impl.score.inliner.ScoreInliner
addConstraintMatch, getConstraintMatchTotalMap, getConstraintWeight, getIndictmentMap
-
-
-
-
Constructor Detail
-
HardSoftBigDecimalScoreInliner
protected HardSoftBigDecimalScoreInliner(Map<Constraint,HardSoftBigDecimalScore> constraintToWeightMap, boolean constraintMatchEnabled)
-
-
Method Detail
-
buildWeightedScoreImpacter
public WeightedScoreImpacter buildWeightedScoreImpacter(Constraint constraint)
Description copied from class:ScoreInliner
Create a new instance ofWeightedScoreImpacter
for a particular constraint.- Specified by:
buildWeightedScoreImpacter
in classScoreInliner<HardSoftBigDecimalScore>
- Parameters:
constraint
- never null- Returns:
- never null
-
extractScore
public HardSoftBigDecimalScore extractScore(int initScore)
- Specified by:
extractScore
in classScoreInliner<HardSoftBigDecimalScore>
-
-