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