Interface ScoreHolder<Score_ extends Score<Score_>>
-
- Type Parameters:
Score_- theScoretype
- All Known Subinterfaces:
BendableBigDecimalScoreHolder,BendableLongScoreHolder,BendableScoreHolder,HardMediumSoftBigDecimalScoreHolder,HardMediumSoftLongScoreHolder,HardMediumSoftScoreHolder,HardSoftBigDecimalScoreHolder,HardSoftLongScoreHolder,HardSoftScoreHolder,SimpleBigDecimalScoreHolder,SimpleLongScoreHolder,SimpleScoreHolder
@Deprecated(forRemoval=true) public interface ScoreHolder<Score_ extends Score<Score_>>
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of Timefold. See DRL to Constraint Streams migration recipe.This is the base interface for all score holder implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidpenalize(org.kie.api.runtime.rule.RuleContext kcontext)Deprecated, for removal: This API element is subject to removal in a future version.Penalize a match by theConstraintWeightnegated.voidreward(org.kie.api.runtime.rule.RuleContext kcontext)Deprecated, for removal: This API element is subject to removal in a future version.Reward a match by theConstraintWeight.
-
-
-
Method Detail
-
penalize
void penalize(org.kie.api.runtime.rule.RuleContext kcontext)
Deprecated, for removal: This API element is subject to removal in a future version.Penalize a match by theConstraintWeightnegated.- Parameters:
kcontext- never null, the magic variable in DRL
-
reward
void reward(org.kie.api.runtime.rule.RuleContext kcontext)
Deprecated, for removal: This API element is subject to removal in a future version.Reward a match by theConstraintWeight.- Parameters:
kcontext- never null, the magic variable in DRL
-
-