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 |
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.penalizeBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
Constraint |
BavetAbstractTriConstraintStream.penalizeConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
Constraint |
BavetAbstractTriConstraintStream.rewardBigDecimal(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
Constraint |
BavetAbstractTriConstraintStream.rewardConfigurableBigDecimal(String constraintPackage,
String constraintName,
TriFunction<A,B,C,BigDecimal> matchWeigher) |
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) |
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.