Uses of Interface
org.optaplanner.core.api.score.stream.quad.QuadConstraintBuilder
-
Uses of QuadConstraintBuilder in org.optaplanner.core.api.score.stream.quad
Modifier and TypeMethodDescriptionQuadConstraintStream.impact
(Score_ constraintWeight) Positively or negatively impacts theScore
by the constraintWeight for each match and returns a builder to apply optional constraint properties.Positively or negatively impacts theScore
by constraintWeight multiplied by matchWeight for each match and returns a builder to apply optional constraint properties.QuadConstraintStream.impactBigDecimal
(Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byQuadConstraintStream.impact(Score, ToIntQuadFunction)
, with an impact of typeBigDecimal
.default QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.impactConfigurable()
Positively impacts theScore
by theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.impactConfigurable
(ToIntQuadFunction<A, B, C, D> matchWeigher) Positively impacts theScore
by theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.impactConfigurableBigDecimal
(QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byQuadConstraintStream.impactConfigurable(ToIntQuadFunction)
, with an impact of type BigDecimal.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.impactConfigurableLong
(ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byQuadConstraintStream.impactConfigurable(ToIntQuadFunction)
, with an impact of type long.QuadConstraintStream.impactLong
(Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byQuadConstraintStream.impact(Score, ToIntQuadFunction)
, with an impact of type long.QuadConstraintBuilder.indictWith
(QuadFunction<A, B, C, D, 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>
QuadConstraintBuilder<A,B, C, D, Score_> QuadConstraintBuilder.justifyWith
(PentaFunction<A, B, C, D, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it.QuadConstraintStream.penalize
(Score_ constraintWeight) As defined byQuadConstraintStream.penalize(Score, ToIntQuadFunction)
, where the match weight is one (1).Applies a negativeScore
impact, subtracting the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.QuadConstraintStream.penalizeBigDecimal
(Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byQuadConstraintStream.penalize(Score, ToIntQuadFunction)
, with a penalty of typeBigDecimal
.default QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.penalizeConfigurable()
Negatively impacts theScore
, subtracting theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.penalizeConfigurable
(ToIntQuadFunction<A, B, C, D> matchWeigher) Negatively impacts theScore
, subtracting theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.penalizeConfigurableBigDecimal
(QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byQuadConstraintStream.penalizeConfigurable(ToIntQuadFunction)
, with a penalty of typeBigDecimal
.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.penalizeConfigurableLong
(ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byQuadConstraintStream.penalizeConfigurable(ToIntQuadFunction)
, with a penalty of type long.QuadConstraintStream.penalizeLong
(Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byQuadConstraintStream.penalize(Score, ToIntQuadFunction)
, with a penalty of type long.QuadConstraintStream.reward
(Score_ constraintWeight) As defined byQuadConstraintStream.reward(Score, ToIntQuadFunction)
, where the match weight is one (1).Applies a positiveScore
impact, adding the constraintWeight multiplied by the match weight, and returns a builder to apply optional constraint properties.QuadConstraintStream.rewardBigDecimal
(Score_ constraintWeight, QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byQuadConstraintStream.reward(Score, ToIntQuadFunction)
, with a penalty of typeBigDecimal
.default QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.rewardConfigurable()
Positively impacts theScore
, adding theConstraintWeight
for each match, and returns a builder to apply optional constraint properties.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.rewardConfigurable
(ToIntQuadFunction<A, B, C, D> matchWeigher) Positively impacts theScore
, adding theConstraintWeight
multiplied by match weight for each match, and returns a builder to apply optional constraint properties.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.rewardConfigurableBigDecimal
(QuadFunction<A, B, C, D, BigDecimal> matchWeigher) As defined byQuadConstraintStream.rewardConfigurable(ToIntQuadFunction)
, with a penalty of typeBigDecimal
.QuadConstraintBuilder<A,
B, C, D, ?> QuadConstraintStream.rewardConfigurableLong
(ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byQuadConstraintStream.rewardConfigurable(ToIntQuadFunction)
, with a penalty of type long.QuadConstraintStream.rewardLong
(Score_ constraintWeight, ToLongQuadFunction<A, B, C, D> matchWeigher) As defined byQuadConstraintStream.reward(Score, ToIntQuadFunction)
, with a penalty of type long.