Class ScoreContext<Score_ extends Score<Score_>>
java.lang.Object
ai.timefold.solver.constraint.streams.common.inliner.ScoreContext<Score_>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Constraintprotected final booleanprotected final Score_ -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScoreContext(AbstractScoreInliner<Score_> parent, Constraint constraint, Score_ constraintWeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected UndoScoreImpacterimpactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, JustificationsSupplier justificationsSupplier) boolean
-
Field Details
-
constraint
-
constraintWeight
-
constraintMatchEnabled
protected final boolean constraintMatchEnabled
-
-
Constructor Details
-
ScoreContext
protected ScoreContext(AbstractScoreInliner<Score_> parent, Constraint constraint, Score_ constraintWeight)
-
-
Method Details
-
getConstraint
-
getConstraintWeight
-
isConstraintMatchEnabled
public boolean isConstraintMatchEnabled() -
impactWithConstraintMatch
protected UndoScoreImpacter impactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, JustificationsSupplier justificationsSupplier)
-