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
Fields Modifier and Type Field Description protected org.optaplanner.core.api.score.stream.Constraintconstraintprotected booleanconstraintMatchEnabledprotected Score_constraintWeight
-
Constructor Summary
Constructors Modifier Constructor Description protectedScoreContext(AbstractScoreInliner<Score_> parent, org.optaplanner.core.api.score.stream.Constraint constraint, Score_ constraintWeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.optaplanner.core.api.score.stream.ConstraintgetConstraint()Score_getConstraintWeight()protected UndoScoreImpacterimpactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, JustificationsSupplier justificationsSupplier)booleanisConstraintMatchEnabled()
-
-
-
Constructor Detail
-
ScoreContext
protected ScoreContext(AbstractScoreInliner<Score_> parent, org.optaplanner.core.api.score.stream.Constraint constraint, Score_ constraintWeight)
-
-
Method Detail
-
getConstraint
public org.optaplanner.core.api.score.stream.Constraint getConstraint()
-
getConstraintWeight
public Score_ getConstraintWeight()
-
isConstraintMatchEnabled
public boolean isConstraintMatchEnabled()
-
impactWithConstraintMatch
protected UndoScoreImpacter impactWithConstraintMatch(UndoScoreImpacter undoScoreImpact, Score_ score, JustificationsSupplier justificationsSupplier)
-
-