Package | Description |
---|---|
org.optaplanner.core.api.score.stream.bi |
The
ConstraintStream API for two matched facts. |
org.optaplanner.core.api.score.stream.tri |
The
ConstraintStream API for three matched facts. |
org.optaplanner.core.impl.score.stream.bavet.bi | |
org.optaplanner.core.impl.score.stream.bavet.tri | |
org.optaplanner.core.impl.score.stream.bi | |
org.optaplanner.core.impl.score.stream.tri |
Modifier and Type | Method and Description |
---|---|
TriFunction<ResultContainer_,A,B,Runnable> |
BiConstraintCollector.accumulator()
A lambda that extracts data from the matched facts,
accumulates it in the result container
and returns an undo operation for that accumulation.
|
Modifier and Type | Method and Description |
---|---|
default Constraint |
TriConstraintStream.penalizeBigDecimal(String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Negatively impact the
Score : subtract the constraintWeight multiplied by the match weight. |
Constraint |
TriConstraintStream.penalizeBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
|
Constraint |
TriConstraintStream.penalizeConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
|
default Constraint |
TriConstraintStream.penalizeConfigurableBigDecimal(String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Negatively impact the
Score : subtract the ConstraintWeight multiplied by the match weight. |
default Constraint |
TriConstraintStream.rewardBigDecimal(String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Positively impact the
Score : add the constraintWeight multiplied by the match weight. |
Constraint |
TriConstraintStream.rewardBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher)
|
Constraint |
TriConstraintStream.rewardConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
|
default Constraint |
TriConstraintStream.rewardConfigurableBigDecimal(String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher)
Positively impact the
Score : add the ConstraintWeight multiplied by the match weight. |
Constructor and Description |
---|
BavetScoringBiNode(BavetConstraintSession session,
int nodeOrder,
String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter) |
Modifier and Type | Method and Description |
---|---|
Constraint |
BavetAbstractTriConstraintStream.impactScoreBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher,
boolean positive) |
Constraint |
BavetAbstractTriConstraintStream.impactScoreConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher,
boolean positive) |
Constructor and Description |
---|
BavetScoringTriConstraintStream(BavetConstraintFactory<Solution_> constraintFactory,
BavetAbstractTriConstraintStream<Solution_,A,B,C> parent,
BavetConstraint<Solution_> constraint,
TriFunction<A,B,C,BigDecimal> bigDecimalMatchWeigher) |
Modifier and Type | Method and Description |
---|---|
TriFunction<ResultContainer_,A,B,Runnable> |
DefaultBiConstraintCollector.accumulator() |
Constructor and Description |
---|
DefaultBiConstraintCollector(Supplier<ResultContainer_> supplier,
TriFunction<ResultContainer_,A,B,Runnable> accumulator,
Function<ResultContainer_,Result_> finisher) |
Modifier and Type | Method and Description |
---|---|
Constraint |
InnerTriConstraintStream.impactScoreBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher,
boolean positive) |
Constraint |
InnerTriConstraintStream.impactScoreConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher,
boolean positive) |
default Constraint |
InnerTriConstraintStream.penalizeBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
default Constraint |
InnerTriConstraintStream.penalizeConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
default Constraint |
InnerTriConstraintStream.rewardBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
default Constraint |
InnerTriConstraintStream.rewardConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.