Class ScoreContext<Score_ extends Score<Score_>,ScoreInliner_ extends AbstractScoreInliner<Score_>>
java.lang.Object
ai.timefold.solver.constraint.streams.common.inliner.ScoreContext<Score_,ScoreInliner_>
public abstract class ScoreContext<Score_ extends Score<Score_>,ScoreInliner_ extends AbstractScoreInliner<Score_>>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractConstraint<?,?, ?> protected final booleanprotected final Score_protected final ScoreInliner_ -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScoreContext(ScoreInliner_ parent, AbstractConstraint<?, ?, ?> constraint, Score_ constraintWeight) -
Method Summary
Modifier and TypeMethodDescriptionAbstractConstraint<?,?, ?> protected UndoScoreImpacterimpactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, ConstraintMatchSupplier<Score_> constraintMatchSupplier) boolean
-
Field Details
-
parent
-
constraint
-
constraintWeight
-
constraintMatchEnabled
protected final boolean constraintMatchEnabled
-
-
Constructor Details
-
ScoreContext
protected ScoreContext(ScoreInliner_ parent, AbstractConstraint<?, ?, ?> constraint, Score_ constraintWeight)
-
-
Method Details
-
getConstraint
-
getConstraintWeight
-
isConstraintMatchEnabled
public boolean isConstraintMatchEnabled() -
impactWithConstraintMatch
protected UndoScoreImpacter impactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, ConstraintMatchSupplier<Score_> constraintMatchSupplier)
-