Class DroolsConstraint<Solution_>
java.lang.Object
org.optaplanner.constraint.streams.common.AbstractConstraint<Solution_,DroolsConstraint<Solution_>,DroolsConstraintFactory<Solution_>>
org.optaplanner.constraint.streams.drools.DroolsConstraint<Solution_>
- All Implemented Interfaces:
Constraint
public final class DroolsConstraint<Solution_>
extends AbstractConstraint<Solution_,DroolsConstraint<Solution_>,DroolsConstraintFactory<Solution_>>
-
Constructor Summary
ConstructorsConstructorDescriptionDroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory, String constraintPackage, String constraintName, Function<Solution_, Score<?>> constraintWeightExtractor, ScoreImpactType scoreImpactType, boolean isConstraintWeightConfigurable, RuleBuilder<Solution_> ruleBuilder, Object justificationMapping, Object indictedObjectsMapping) -
Method Summary
Modifier and TypeMethodDescriptionorg.drools.model.RulebuildRule(org.drools.model.Global<WeightedScoreImpacter> scoreImpacterGlobal) toString()Methods inherited from class org.optaplanner.constraint.streams.common.AbstractConstraint
assertCorrectImpact, assertCorrectImpact, assertCorrectImpact, extractConstraintWeight, getConstraintFactory, getConstraintId, getConstraintName, getConstraintPackage, getIndictedObjectsMapping, getJustificationMapping, getScoreImpactType
-
Constructor Details
-
DroolsConstraint
public DroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory, String constraintPackage, String constraintName, Function<Solution_, Score<?>> constraintWeightExtractor, ScoreImpactType scoreImpactType, boolean isConstraintWeightConfigurable, RuleBuilder<Solution_> ruleBuilder, Object justificationMapping, Object indictedObjectsMapping)
-
-
Method Details
-
buildRule
public org.drools.model.Rule buildRule(org.drools.model.Global<WeightedScoreImpacter> scoreImpacterGlobal) -
toString
-