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
- All Known Implementing Classes:
AbstractScoreHolder,BendableBigDecimalScoreHolderImpl,BendableLongScoreHolderImpl,BendableScoreHolderImpl,HardMediumSoftBigDecimalScoreHolderImpl,HardMediumSoftLongScoreHolderImpl,HardMediumSoftScoreHolderImpl,HardSoftBigDecimalScoreHolderImpl,HardSoftLongScoreHolderImpl,HardSoftScoreHolderImpl,SimpleBigDecimalScoreHolderImpl,SimpleLongScoreHolderImpl,SimpleScoreHolderImpl
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 OptaPlanner.
See DRL to
Constraint Streams migration recipe.
This is the base interface for all score holder implementations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpenalize(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 Details
-
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
-