Interface ScoreHolder<Score_ extends Score<Score_>>
-
- Type Parameters:
Score_
- theScore
type
- 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(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 OptaPlanner. 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 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 theConstraintWeight
negated.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
.
-
-
-
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 theConstraintWeight
negated.- 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
-
-