Class DroolsConstraint<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.score.stream.common.AbstractConstraint<Solution_,DroolsConstraint<Solution_>,DroolsConstraintFactory<Solution_>>
-
- org.optaplanner.core.impl.score.stream.drools.DroolsConstraint<Solution_>
-
- All Implemented Interfaces:
Constraint
public final class DroolsConstraint<Solution_> extends AbstractConstraint<Solution_,DroolsConstraint<Solution_>,DroolsConstraintFactory<Solution_>>
-
-
Constructor Summary
Constructors Constructor Description DroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory, String constraintPackage, String constraintName, Function<Solution_,Score<?>> constraintWeightExtractor, ScoreImpactType scoreImpactType, boolean isConstraintWeightConfigurable, RuleBuilder<Solution_> ruleBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.drools.model.Rule
buildRule(org.drools.model.Global<WeightedScoreImpacter> scoreImpacterGlobal)
String
toString()
-
Methods inherited from class org.optaplanner.core.impl.score.stream.common.AbstractConstraint
assertCorrectImpact, assertCorrectImpact, assertCorrectImpact, extractConstraintWeight, getConstraintFactory, getConstraintId, getConstraintName, getConstraintPackage, getScoreImpactType
-
-
-
-
Constructor Detail
-
DroolsConstraint
public DroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory, String constraintPackage, String constraintName, Function<Solution_,Score<?>> constraintWeightExtractor, ScoreImpactType scoreImpactType, boolean isConstraintWeightConfigurable, RuleBuilder<Solution_> ruleBuilder)
-
-
Method Detail
-
buildRule
public org.drools.model.Rule buildRule(org.drools.model.Global<WeightedScoreImpacter> scoreImpacterGlobal)
-
-