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
Fields Modifier and Type Field Description protected AbstractConstraint<?,?,?>constraintprotected booleanconstraintMatchEnabledprotected Score_constraintWeightprotected ScoreInliner_parent
-
Constructor Summary
Constructors Modifier Constructor Description protectedScoreContext(ScoreInliner_ parent, AbstractConstraint<?,?,?> constraint, Score_ constraintWeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractConstraint<?,?,?>getConstraint()Score_getConstraintWeight()protected UndoScoreImpacterimpactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, ConstraintMatchSupplier<Score_> constraintMatchSupplier)booleanisConstraintMatchEnabled()
-
-
-
Field Detail
-
parent
protected final ScoreInliner_ extends AbstractScoreInliner<Score_> parent
-
constraint
protected final AbstractConstraint<?,?,?> constraint
-
constraintMatchEnabled
protected final boolean constraintMatchEnabled
-
-
Constructor Detail
-
ScoreContext
protected ScoreContext(ScoreInliner_ parent, AbstractConstraint<?,?,?> constraint, Score_ constraintWeight)
-
-
Method Detail
-
getConstraint
public AbstractConstraint<?,?,?> getConstraint()
-
getConstraintWeight
public Score_ getConstraintWeight()
-
isConstraintMatchEnabled
public boolean isConstraintMatchEnabled()
-
impactWithConstraintMatch
protected UndoScoreImpacter impactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, ConstraintMatchSupplier<Score_> constraintMatchSupplier)
-
-