Package | Description |
---|---|
org.optaplanner.core.api.score.stream |
The
ConstraintStream API:
a way to define constraints for Score calculation. |
org.optaplanner.core.api.score.stream.quad |
The
ConstraintStream API for four matched facts. |
org.optaplanner.core.impl.score.stream.drools.quad | |
org.optaplanner.core.impl.score.stream.quad |
Modifier and Type | Method and Description |
---|---|
static <A,B,C,D> QuadConstraintCollector<A,B,C,D,?,Integer> |
ConstraintCollectors.sum(ToIntQuadFunction<? super A,? super B,? super C,? super D> groupValueMapping) |
Modifier and Type | Method and Description |
---|---|
default Constraint |
QuadConstraintStream.impact(String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher)
Positively or negatively impact the
Score by the constraintWeight multiplied by the match weight. |
Constraint |
QuadConstraintStream.impact(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher)
|
Constraint |
QuadConstraintStream.impactConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher)
|
default Constraint |
QuadConstraintStream.impactConfigurable(String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher)
Positively or negatively impact the
Score by the ConstraintWeight for each match. |
default Constraint |
QuadConstraintStream.penalize(String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher)
Negatively impact the
Score : subtract the constraintWeight multiplied by the match weight. |
Constraint |
QuadConstraintStream.penalize(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher)
|
Constraint |
QuadConstraintStream.penalizeConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher)
|
default Constraint |
QuadConstraintStream.penalizeConfigurable(String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher)
Negatively impact the
Score : subtract the ConstraintWeight multiplied by the match weight. |
default Constraint |
QuadConstraintStream.reward(String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher)
Positively impact the
Score : add the constraintWeight multiplied by the match weight. |
Constraint |
QuadConstraintStream.reward(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher)
|
Constraint |
QuadConstraintStream.rewardConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher)
|
default Constraint |
QuadConstraintStream.rewardConfigurable(String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher)
Positively impact the
Score : add the ConstraintWeight multiplied by the match weight. |
Modifier and Type | Method and Description |
---|---|
List<org.drools.model.RuleItemBuilder<?>> |
DroolsQuadCondition.completeWithScoring(DroolsConstraint<?> constraint,
org.drools.model.Global<? extends AbstractScoreHolder<?>> scoreHolderGlobal,
ToIntQuadFunction<A,B,C,D> matchWeighter) |
Constraint |
DroolsAbstractQuadConstraintStream.impactScore(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher,
ScoreImpactType impactType) |
Constraint |
DroolsAbstractQuadConstraintStream.impactScoreConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher,
ScoreImpactType impactType) |
Constructor and Description |
---|
DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
ToIntQuadFunction<A,B,C,D> intMatchWeigher) |
Modifier and Type | Method and Description |
---|---|
default Constraint |
InnerQuadConstraintStream.impact(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher) |
default Constraint |
InnerQuadConstraintStream.impactConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher) |
Constraint |
InnerQuadConstraintStream.impactScore(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher,
ScoreImpactType impactType) |
Constraint |
InnerQuadConstraintStream.impactScoreConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher,
ScoreImpactType impactType) |
default Constraint |
InnerQuadConstraintStream.penalize(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher) |
default Constraint |
InnerQuadConstraintStream.penalizeConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher) |
default Constraint |
InnerQuadConstraintStream.reward(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
ToIntQuadFunction<A,B,C,D> matchWeigher) |
default Constraint |
InnerQuadConstraintStream.rewardConfigurable(String constraintPackage,
String constraintName,
ToIntQuadFunction<A,B,C,D> matchWeigher) |
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.