Uses of Interface
org.optaplanner.core.api.score.stream.uni.UniConstraintBuilder
-
Uses of UniConstraintBuilder in org.optaplanner.core.api.score.stream.uni
Modifier and TypeMethodDescriptiondefault <Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.impact
(Score_ constraintWeight) Positively or negatively impacts theScore
by the constraintWeight for each match and returns a builder to apply optional constraint properties.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.impact
(Score_ constraintWeight, ToIntFunction<A> matchWeigher) Positively or negatively impacts theScore
by constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.impactBigDecimal
(Score_ constraintWeight, Function<A, BigDecimal> matchWeigher) As defined byUniConstraintStream.impact(Score, ToIntFunction)
, with an impact of typeBigDecimal
.default UniConstraintBuilder<A,
?> UniConstraintStream.impactConfigurable()
Positively impacts theScore
by theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.UniConstraintStream.impactConfigurable
(ToIntFunction<A> matchWeigher) Positively impacts theScore
by theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.UniConstraintStream.impactConfigurableBigDecimal
(Function<A, BigDecimal> matchWeigher) As defined byUniConstraintStream.impactConfigurable(ToIntFunction)
, with an impact of type BigDecimal.UniConstraintStream.impactConfigurableLong
(ToLongFunction<A> matchWeigher) As defined byUniConstraintStream.impactConfigurable(ToIntFunction)
, with an impact of type long.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.impactLong
(Score_ constraintWeight, ToLongFunction<A> matchWeigher) As defined byUniConstraintStream.impact(Score, ToIntFunction)
, with an impact of type long.UniConstraintBuilder.indictWith
(Function<A, Collection<Object>> indictedObjectsMapping) Sets a custom function to mark any object returned by it as responsible for causing the constraint to match.<ConstraintJustification_ extends ConstraintJustification>
UniConstraintBuilder<A,Score_> UniConstraintBuilder.justifyWith
(BiFunction<A, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it.default <Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.penalize
(Score_ constraintWeight) As defined byUniConstraintStream.penalize(Score, ToIntFunction)
, where the match weight is one (1).<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.penalize
(Score_ constraintWeight, ToIntFunction<A> matchWeigher) Applies a negativeScore
impact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.penalizeBigDecimal
(Score_ constraintWeight, Function<A, BigDecimal> matchWeigher) As defined byUniConstraintStream.penalize(Score, ToIntFunction)
, with a penalty of typeBigDecimal
.default UniConstraintBuilder<A,
?> UniConstraintStream.penalizeConfigurable()
Negatively impacts theScore
, subtracting theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.UniConstraintStream.penalizeConfigurable
(ToIntFunction<A> matchWeigher) Negatively impacts theScore
, subtracting theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.UniConstraintStream.penalizeConfigurableBigDecimal
(Function<A, BigDecimal> matchWeigher) As defined byUniConstraintStream.penalizeConfigurable(ToIntFunction)
, with a penalty of typeBigDecimal
.UniConstraintStream.penalizeConfigurableLong
(ToLongFunction<A> matchWeigher) As defined byUniConstraintStream.penalizeConfigurable(ToIntFunction)
, with a penalty of type long.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.penalizeLong
(Score_ constraintWeight, ToLongFunction<A> matchWeigher) As defined byUniConstraintStream.penalize(Score, ToIntFunction)
, with a penalty of type long.default <Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.reward
(Score_ constraintWeight) As defined byUniConstraintStream.reward(Score, ToIntFunction)
, where the match weight is one (1).<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.reward
(Score_ constraintWeight, ToIntFunction<A> matchWeigher) Applies a positiveScore
impact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.rewardBigDecimal
(Score_ constraintWeight, Function<A, BigDecimal> matchWeigher) As defined byUniConstraintStream.reward(Score, ToIntFunction)
, with a penalty of typeBigDecimal
.default UniConstraintBuilder<A,
?> UniConstraintStream.rewardConfigurable()
Positively impacts theScore
, adding theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.UniConstraintStream.rewardConfigurable
(ToIntFunction<A> matchWeigher) Positively impacts theScore
, adding theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.UniConstraintStream.rewardConfigurableBigDecimal
(Function<A, BigDecimal> matchWeigher) As defined byUniConstraintStream.rewardConfigurable(ToIntFunction)
, with a penalty of typeBigDecimal
.UniConstraintStream.rewardConfigurableLong
(ToLongFunction<A> matchWeigher) As defined byUniConstraintStream.rewardConfigurable(ToIntFunction)
, with a penalty of type long.<Score_ extends Score<Score_>>
UniConstraintBuilder<A,Score_> UniConstraintStream.rewardLong
(Score_ constraintWeight, ToLongFunction<A> matchWeigher) As defined byUniConstraintStream.reward(Score, ToIntFunction)
, with a penalty of type long.