Class AbstractScoreInliner<Score_ extends Score<Score_>>
java.lang.Object
org.optaplanner.constraint.streams.common.inliner.AbstractScoreInliner<Score_>
- Direct Known Subclasses:
BendableLongScoreInliner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final RunnableaddConstraintMatch(Constraint constraint, Score_ constraintWeight, Score_ score, JustificationsSupplier justificationsSupplier) static <Score_ extends Score<Score_>,ScoreInliner_ extends AbstractScoreInliner<Score_>>
ScoreInliner_buildScoreInliner(ScoreDefinition<Score_> scoreDefinition, boolean constraintMatchEnabled) abstract WeightedScoreImpacter<Score_,?> buildWeightedScoreImpacter(Constraint constraint, Score_ constraintWeight) Create a new instance ofWeightedScoreImpacterfor a particular constraint.abstract Score_extractScore(int initScore) final Map<String,ConstraintMatchTotal<Score_>> final Map<Object,Indictment<Score_>> booleanprotected final voidvalidateConstraintWeight(Constraint constraint, Score_ constraintWeight)
-
Field Details
-
constraintMatchEnabled
protected final boolean constraintMatchEnabled
-
-
Constructor Details
-
AbstractScoreInliner
protected AbstractScoreInliner(boolean constraintMatchEnabled)
-
-
Method Details
-
buildScoreInliner
public static <Score_ extends Score<Score_>,ScoreInliner_ extends AbstractScoreInliner<Score_>> ScoreInliner_ buildScoreInliner(ScoreDefinition<Score_> scoreDefinition, boolean constraintMatchEnabled) -
extractScore
-
buildWeightedScoreImpacter
public abstract WeightedScoreImpacter<Score_,?> buildWeightedScoreImpacter(Constraint constraint, Score_ constraintWeight) Create a new instance ofWeightedScoreImpacterfor a particular constraint.- Parameters:
constraint- never nullconstraintWeight- never null- Returns:
- never null
-
addConstraintMatch
protected final Runnable addConstraintMatch(Constraint constraint, Score_ constraintWeight, Score_ score, JustificationsSupplier justificationsSupplier) -
isConstraintMatchEnabled
public boolean isConstraintMatchEnabled() -
getConstraintMatchTotalMap
-
getIndictmentMap
-
validateConstraintWeight
-