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