Interface InnerBiConstraintStream<A,B>
- All Superinterfaces:
BiConstraintStream<A,,B> ConstraintStream
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A,B> BiFunction<A, B, Collection<?>> static <A,B> TriFunction<A, B, Score<?>, DefaultConstraintJustification> default BiConstraintStream<A,B> distinct()booleanThis method will return true if the constraint stream is guaranteed to only produce distinct tuples.default Constraintdefault Constraintdefault <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> impact(Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher) default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> impactBigDecimal(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) default BiConstraintBuilder<A,B, ?> impactConfigurable(ToIntBiFunction<A, B> matchWeigher) default BiConstraintBuilder<A,B, ?> impactConfigurableBigDecimal(BiFunction<A, B, BigDecimal> matchWeigher) default BiConstraintBuilder<A,B, ?> impactConfigurableLong(ToLongBiFunction<A, B> matchWeigher) default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> impactLong(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> innerImpact(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher, ScoreImpactType scoreImpactType) <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> innerImpact(Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher, ScoreImpactType scoreImpactType) <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> innerImpact(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher, ScoreImpactType scoreImpactType) default <C> TriConstraintStream<A,B, C> default Constraintdefault Constraintdefault <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> penalize(Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher) default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> penalizeBigDecimal(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) default ConstraintpenalizeConfigurable(String constraintName) default ConstraintpenalizeConfigurable(String constraintPackage, String constraintName) default BiConstraintBuilder<A,B, ?> penalizeConfigurable(ToIntBiFunction<A, B> matchWeigher) default BiConstraintBuilder<A,B, ?> penalizeConfigurableBigDecimal(BiFunction<A, B, BigDecimal> matchWeigher) default BiConstraintBuilder<A,B, ?> penalizeConfigurableLong(ToLongBiFunction<A, B> matchWeigher) default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> penalizeLong(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) default Constraintdefault Constraintdefault <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> reward(Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher) default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> rewardBigDecimal(Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) default ConstraintrewardConfigurable(String constraintName) default ConstraintrewardConfigurable(String constraintPackage, String constraintName) default BiConstraintBuilder<A,B, ?> rewardConfigurable(ToIntBiFunction<A, B> matchWeigher) default BiConstraintBuilder<A,B, ?> rewardConfigurableBigDecimal(BiFunction<A, B, BigDecimal> matchWeigher) default BiConstraintBuilder<A,B, ?> rewardConfigurableLong(ToLongBiFunction<A, B> matchWeigher) default <Score_ extends Score<Score_>>
BiConstraintBuilder<A,B, Score_> rewardLong(Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) Methods inherited from interface ai.timefold.solver.core.api.score.stream.bi.BiConstraintStream
filter, flattenLast, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, ifExists, ifExists, ifExists, ifExists, ifExists, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifNotExists, ifNotExists, ifNotExists, ifNotExists, ifNotExists, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, impact, impact, impact, impactBigDecimal, impactBigDecimal, impactConfigurable, impactConfigurable, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableBigDecimal, impactConfigurableLong, impactConfigurableLong, impactLong, impactLong, join, join, join, join, join, join, join, join, join, join, join, map, penalize, penalize, penalize, penalizeBigDecimal, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurable, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeConfigurableLong, penalizeLong, penalizeLong, reward, reward, reward, rewardBigDecimal, rewardBigDecimal, rewardConfigurable, rewardConfigurable, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardConfigurableLong, rewardLong, rewardLongMethods inherited from interface ai.timefold.solver.core.api.score.stream.ConstraintStream
getConstraintFactory
-
Method Details
-
createDefaultJustificationMapping
static <A,B> TriFunction<A,B, createDefaultJustificationMapping()Score<?>, DefaultConstraintJustification> -
createDefaultIndictedObjectsMapping
-
getRetrievalSemantics
RetrievalSemantics getRetrievalSemantics() -
guaranteesDistinct
boolean guaranteesDistinct()This method will return true if the constraint stream is guaranteed to only produce distinct tuples. Seedistinct()for details.- Returns:
- true if the guarantee of distinct tuples is provided
-
join
- Specified by:
joinin interfaceBiConstraintStream<A,B>
-
distinct
- Specified by:
distinctin interfaceBiConstraintStream<A,B>
-
penalize
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, penalizeScore_> (Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher) - Specified by:
penalizein interfaceBiConstraintStream<A,B>
-
penalizeLong
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, penalizeLongScore_> (Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) - Specified by:
penalizeLongin interfaceBiConstraintStream<A,B>
-
penalizeBigDecimal
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, penalizeBigDecimalScore_> (Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) - Specified by:
penalizeBigDecimalin interfaceBiConstraintStream<A,B>
-
penalizeConfigurable
- Specified by:
penalizeConfigurablein interfaceBiConstraintStream<A,B>
-
penalizeConfigurableLong
- Specified by:
penalizeConfigurableLongin interfaceBiConstraintStream<A,B>
-
penalizeConfigurableBigDecimal
default BiConstraintBuilder<A,B, penalizeConfigurableBigDecimal?> (BiFunction<A, B, BigDecimal> matchWeigher) - Specified by:
penalizeConfigurableBigDecimalin interfaceBiConstraintStream<A,B>
-
reward
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, rewardScore_> (Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher) - Specified by:
rewardin interfaceBiConstraintStream<A,B>
-
rewardLong
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, rewardLongScore_> (Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) - Specified by:
rewardLongin interfaceBiConstraintStream<A,B>
-
rewardBigDecimal
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, rewardBigDecimalScore_> (Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) - Specified by:
rewardBigDecimalin interfaceBiConstraintStream<A,B>
-
rewardConfigurable
- Specified by:
rewardConfigurablein interfaceBiConstraintStream<A,B>
-
rewardConfigurableLong
- Specified by:
rewardConfigurableLongin interfaceBiConstraintStream<A,B>
-
rewardConfigurableBigDecimal
default BiConstraintBuilder<A,B, rewardConfigurableBigDecimal?> (BiFunction<A, B, BigDecimal> matchWeigher) - Specified by:
rewardConfigurableBigDecimalin interfaceBiConstraintStream<A,B>
-
impact
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, impactScore_> (Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher) - Specified by:
impactin interfaceBiConstraintStream<A,B>
-
impactLong
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, impactLongScore_> (Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher) - Specified by:
impactLongin interfaceBiConstraintStream<A,B>
-
impactBigDecimal
default <Score_ extends Score<Score_>> BiConstraintBuilder<A,B, impactBigDecimalScore_> (Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher) - Specified by:
impactBigDecimalin interfaceBiConstraintStream<A,B>
-
impactConfigurable
- Specified by:
impactConfigurablein interfaceBiConstraintStream<A,B>
-
impactConfigurableLong
- Specified by:
impactConfigurableLongin interfaceBiConstraintStream<A,B>
-
impactConfigurableBigDecimal
default BiConstraintBuilder<A,B, impactConfigurableBigDecimal?> (BiFunction<A, B, BigDecimal> matchWeigher) - Specified by:
impactConfigurableBigDecimalin interfaceBiConstraintStream<A,B>
-
innerImpact
<Score_ extends Score<Score_>> BiConstraintBuilder<A,B, innerImpactScore_> (Score_ constraintWeight, ToIntBiFunction<A, B> matchWeigher, ScoreImpactType scoreImpactType) -
innerImpact
<Score_ extends Score<Score_>> BiConstraintBuilder<A,B, innerImpactScore_> (Score_ constraintWeight, ToLongBiFunction<A, B> matchWeigher, ScoreImpactType scoreImpactType) -
innerImpact
<Score_ extends Score<Score_>> BiConstraintBuilder<A,B, innerImpactScore_> (Score_ constraintWeight, BiFunction<A, B, BigDecimal> matchWeigher, ScoreImpactType scoreImpactType) -
penalize
- Specified by:
penalizein interfaceConstraintStream
-
penalize
default Constraint penalize(String constraintPackage, String constraintName, Score<?> constraintWeight) - Specified by:
penalizein interfaceConstraintStream
-
penalizeConfigurable
- Specified by:
penalizeConfigurablein interfaceConstraintStream
-
penalizeConfigurable
- Specified by:
penalizeConfigurablein interfaceConstraintStream
-
reward
- Specified by:
rewardin interfaceConstraintStream
-
reward
default Constraint reward(String constraintPackage, String constraintName, Score<?> constraintWeight) - Specified by:
rewardin interfaceConstraintStream
-
rewardConfigurable
- Specified by:
rewardConfigurablein interfaceConstraintStream
-
rewardConfigurable
- Specified by:
rewardConfigurablein interfaceConstraintStream
-
impact
- Specified by:
impactin interfaceConstraintStream
-
impact
default Constraint impact(String constraintPackage, String constraintName, Score<?> constraintWeight) - Specified by:
impactin interfaceConstraintStream
-