Uses of Interface
org.optaplanner.core.api.score.stream.bi.BiConstraintBuilder
-
Uses of BiConstraintBuilder in org.optaplanner.core.api.score.stream.bi
Modifier and TypeMethodDescriptiondefault <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.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_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.impact
(Score_ constraintWeight, ToIntBiFunction<A, B> 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_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.impactBigDecimal
(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) As defined byBiConstraintStream.impact(Score, ToIntBiFunction)
, with an impact of typeBigDecimal
.default BiConstraintBuilder<A,
B, ?> BiConstraintStream.impactConfigurable()
Positively impacts theScore
by theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.BiConstraintStream.impactConfigurable
(ToIntBiFunction<A, B> matchWeigher) Positively impacts theScore
by theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.BiConstraintStream.impactConfigurableBigDecimal
(BiFunction<A, B, BigDecimal> matchWeigher) As defined byBiConstraintStream.impactConfigurable(ToIntBiFunction)
, with an impact of type BigDecimal.BiConstraintStream.impactConfigurableLong
(ToLongBiFunction<A, B> matchWeigher) As defined byBiConstraintStream.impactConfigurable(ToIntBiFunction)
, with an impact of type long.<Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.impactLong
(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) As defined byBiConstraintStream.impact(Score, ToIntBiFunction)
, with an impact of type long.BiConstraintBuilder.indictWith
(BiFunction<A, B, 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>
BiConstraintBuilder<A,B, Score_> BiConstraintBuilder.justifyWith
(TriFunction<A, B, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it.default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.penalize
(Score_ constraintWeight) As defined byBiConstraintStream.penalize(Score, ToIntBiFunction)
, where the match weight is one (1).<Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.penalize
(Score_ constraintWeight, ToIntBiFunction<A, B> 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_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.penalizeBigDecimal
(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) As defined byBiConstraintStream.penalize(Score, ToIntBiFunction)
, with a penalty of typeBigDecimal
.default BiConstraintBuilder<A,
B, ?> BiConstraintStream.penalizeConfigurable()
Negatively impacts theScore
, subtracting theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.BiConstraintStream.penalizeConfigurable
(ToIntBiFunction<A, B> matchWeigher) Negatively impacts theScore
, subtracting theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.BiConstraintStream.penalizeConfigurableBigDecimal
(BiFunction<A, B, BigDecimal> matchWeigher) As defined byBiConstraintStream.penalizeConfigurable(ToIntBiFunction)
, with a penalty of typeBigDecimal
.BiConstraintStream.penalizeConfigurableLong
(ToLongBiFunction<A, B> matchWeigher) As defined byBiConstraintStream.penalizeConfigurable(ToIntBiFunction)
, with a penalty of type long.<Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.penalizeLong
(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) As defined byBiConstraintStream.penalize(Score, ToIntBiFunction)
, with a penalty of type long.default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.reward
(Score_ constraintWeight) As defined byBiConstraintStream.reward(Score, ToIntBiFunction)
, where the match weight is one (1).<Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.reward
(Score_ constraintWeight, ToIntBiFunction<A, B> 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_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.rewardBigDecimal
(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) As defined byBiConstraintStream.reward(Score, ToIntBiFunction)
, with a penalty of typeBigDecimal
.default BiConstraintBuilder<A,
B, ?> BiConstraintStream.rewardConfigurable()
Positively impacts theScore
, adding theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.BiConstraintStream.rewardConfigurable
(ToIntBiFunction<A, B> matchWeigher) Positively impacts theScore
, adding theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.BiConstraintStream.rewardConfigurableBigDecimal
(BiFunction<A, B, BigDecimal> matchWeigher) As defined byBiConstraintStream.rewardConfigurable(ToIntBiFunction)
, with a penalty of typeBigDecimal
.BiConstraintStream.rewardConfigurableLong
(ToLongBiFunction<A, B> matchWeigher) As defined byBiConstraintStream.rewardConfigurable(ToIntBiFunction)
, with a penalty of type long.<Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> BiConstraintStream.rewardLong
(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) As defined byBiConstraintStream.reward(Score, ToIntBiFunction)
, with a penalty of type long.