public class DroolsConstraint<Solution_> extends AbstractConstraint<Solution_,DroolsConstraintFactory<Solution_>>
constraintFactory, constraintName, constraintPackage, scoreImpactType
Constructor and Description |
---|
DroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory,
String constraintPackage,
String constraintName,
Function<Solution_,Score<?>> constraintWeightExtractor,
ScoreImpactType scoreImpactType,
boolean isConstraintWeightConfigurable,
List<DroolsFromUniConstraintStream<Solution_,Object>> fromStreamList,
DroolsAbstractConstraintStream<Solution_> scoringStream) |
Modifier and Type | Method and Description |
---|---|
org.drools.model.Rule |
createRule(org.drools.model.Global<? extends AbstractScoreHolder<?>> scoreHolderGlobal) |
int |
getExpectedJustificationCount() |
Class[] |
getExpectedJustificationTypes()
As defined by
DroolsRuleStructure.getExpectedJustificationTypes() . |
String |
toString() |
assertCorrectImpact, assertCorrectImpact, assertCorrectImpact, extractConstraintWeight, getConstraintFactory, getConstraintName, getConstraintPackage, getScoreImpactType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstraintId
public DroolsConstraint(DroolsConstraintFactory<Solution_> constraintFactory, String constraintPackage, String constraintName, Function<Solution_,Score<?>> constraintWeightExtractor, ScoreImpactType scoreImpactType, boolean isConstraintWeightConfigurable, List<DroolsFromUniConstraintStream<Solution_,Object>> fromStreamList, DroolsAbstractConstraintStream<Solution_> scoringStream)
public org.drools.model.Rule createRule(org.drools.model.Global<? extends AbstractScoreHolder<?>> scoreHolderGlobal)
public Class[] getExpectedJustificationTypes()
DroolsRuleStructure.getExpectedJustificationTypes()
.public int getExpectedJustificationCount()
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.