Interface ScoreHolder<Score_ extends Score<Score_>>

Type Parameters:
Score_ - the Score 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

    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 the ConstraintWeight 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 the ConstraintWeight.
  • 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 the ConstraintWeight 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 the ConstraintWeight.
      Parameters:
      kcontext - never null, the magic variable in DRL