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:
org.optaplanner.core.api.score.stream.Constraint

public final class DroolsConstraint<Solution_> extends org.optaplanner.constraint.streams.common.AbstractConstraint<Solution_,DroolsConstraint<Solution_>,DroolsConstraintFactory<Solution_>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    DroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory, String constraintPackage, String constraintName, Function<Solution_,org.optaplanner.core.api.score.Score<?>> constraintWeightExtractor, org.optaplanner.constraint.streams.common.ScoreImpactType scoreImpactType, boolean isConstraintWeightConfigurable, RuleBuilder<Solution_> ruleBuilder, Object justificationMapping, Object indictedObjectsMapping)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.drools.model.Rule
    buildRule(org.drools.model.Global<org.optaplanner.constraint.streams.common.inliner.WeightedScoreImpacter> scoreImpacterGlobal)
     
     

    Methods inherited from class org.optaplanner.constraint.streams.common.AbstractConstraint

    assertCorrectImpact, assertCorrectImpact, assertCorrectImpact, extractConstraintWeight, getConstraintFactory, getConstraintId, getConstraintName, getConstraintPackage, getIndictedObjectsMapping, getJustificationMapping, getScoreImpactType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • buildRule

      public org.drools.model.Rule buildRule(org.drools.model.Global<org.optaplanner.constraint.streams.common.inliner.WeightedScoreImpacter> scoreImpacterGlobal)
    • toString

      public String toString()
      Overrides:
      toString in class Object