Class ScoreInliner<Score_ extends Score<Score_>>
- java.lang.Object
-
- org.optaplanner.core.impl.score.inliner.ScoreInliner<Score_>
-
- Direct Known Subclasses:
BendableBigDecimalScoreInliner,BendableLongScoreInliner,BendableScoreInliner,HardMediumSoftBigDecimalScoreInliner,HardMediumSoftLongScoreInliner,HardMediumSoftScoreInliner,HardSoftBigDecimalScoreInliner,HardSoftLongScoreInliner,HardSoftScoreInliner,SimpleBigDecimalScoreInliner,SimpleLongScoreInliner,SimpleScoreInliner
public abstract class ScoreInliner<Score_ extends Score<Score_>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanconstraintMatchEnabled
-
Constructor Summary
Constructors Modifier Constructor Description protectedScoreInliner(Map<Constraint,Score_> constraintToWeightMap, boolean constraintMatchEnabled, Score_ zeroScore)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected RunnableaddConstraintMatch(Constraint constraint, Score_ constraintWeight, Score_ score, List<Object> justificationList)abstract WeightedScoreImpacterbuildWeightedScoreImpacter(Constraint constraint)Create a new instance ofWeightedScoreImpacterfor a particular constraint.abstract Score_extractScore(int initScore)Map<String,ConstraintMatchTotal<Score_>>getConstraintMatchTotalMap()protected Score_getConstraintWeight(Constraint constraint)Map<Object,Indictment<Score_>>getIndictmentMap()
-
-
-
Constructor Detail
-
ScoreInliner
protected ScoreInliner(Map<Constraint,Score_> constraintToWeightMap, boolean constraintMatchEnabled, Score_ zeroScore)
-
-
Method Detail
-
extractScore
public abstract Score_ extractScore(int initScore)
-
buildWeightedScoreImpacter
public abstract WeightedScoreImpacter buildWeightedScoreImpacter(Constraint constraint)
Create a new instance ofWeightedScoreImpacterfor a particular constraint.- Parameters:
constraint- never null- Returns:
- never null
-
addConstraintMatch
protected final Runnable addConstraintMatch(Constraint constraint, Score_ constraintWeight, Score_ score, List<Object> justificationList)
-
getConstraintMatchTotalMap
public final Map<String,ConstraintMatchTotal<Score_>> getConstraintMatchTotalMap()
-
getIndictmentMap
public final Map<Object,Indictment<Score_>> getIndictmentMap()
-
getConstraintWeight
protected final Score_ getConstraintWeight(Constraint constraint)
-
-