public abstract class DroolsAbstractConstraintStream<Solution_> extends AbstractConstraintStream<Solution_>
Modifier and Type | Field and Description |
---|---|
protected DroolsConstraintFactory<Solution_> |
constraintFactory |
Constructor and Description |
---|
DroolsAbstractConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory) |
buildConstraintWeightExtractor, buildConstraintWeightExtractor, impactScore, impactScoreConfigurable, penalize, penalizeConfigurable, reward, rewardConfigurable, validateConstraintId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
penalize, penalizeConfigurable, reward, rewardConfigurable
protected final DroolsConstraintFactory<Solution_> constraintFactory
public DroolsAbstractConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory)
protected DroolsConstraint<Solution_> buildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, boolean positive, DroolsAbstractConstraintStream<Solution_> scoringStream)
protected DroolsConstraint<Solution_> buildConstraintConfigurable(String constraintPackage, String constraintName, boolean positive, DroolsAbstractConstraintStream<Solution_> scoringStream)
public abstract List<DroolsFromUniConstraintStream<Solution_,Object>> getFromStreamList()
public void addChildStream(DroolsAbstractConstraintStream<Solution_> childStream)
public Collection<DroolsAbstractConstraintStream<Solution_>> getChildStreams()
public List<org.drools.model.RuleItemBuilder<?>> createRuleItemBuilders(org.drools.model.Global<? extends AbstractScoreHolder<?>> scoreHolderGlobal)
DroolsScoringUniConstraintStream
.scoreHolderGlobal
- contains the score to be affectedpublic abstract boolean isGroupByAllowed()
protected void throwWhenGroupByNotAllowed()
public DroolsConstraintFactory<Solution_> getConstraintFactory()
ConstraintStream
ConstraintFactory
that build this.getConstraintFactory
in interface ConstraintStream
getConstraintFactory
in class AbstractConstraintStream<Solution_>
public Class[] getExpectedJustificationTypes()
DroolsRuleStructure.getExpectedJustificationTypes()
.
May only be called on scoring streams.Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.