Class DroolsAbstractConstraintStream<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream<Solution_>
-
- org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream<Solution_>
-
- All Implemented Interfaces:
ConstraintStream
- Direct Known Subclasses:
DroolsAbstractBiConstraintStream
,DroolsAbstractQuadConstraintStream
,DroolsAbstractTriConstraintStream
,DroolsAbstractUniConstraintStream
public abstract class DroolsAbstractConstraintStream<Solution_> extends AbstractConstraintStream<Solution_>
-
-
Field Summary
Fields Modifier and Type Field Description protected DroolsConstraintFactory<Solution_>
constraintFactory
-
Constructor Summary
Constructors Constructor Description DroolsAbstractConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, RetrievalSemantics retrievalSemantics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildStream(DroolsAbstractConstraintStream<Solution_> childStream)
protected DroolsConstraint<Solution_>
buildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, ScoreImpactType impactType, RuleBuilder<Solution_> ruleBuilder)
protected DroolsConstraint<Solution_>
buildConstraintConfigurable(String constraintPackage, String constraintName, ScoreImpactType impactType, RuleBuilder<Solution_> ruleBuilder)
Collection<DroolsAbstractConstraintStream<Solution_>>
getChildStreams()
DroolsConstraintFactory<Solution_>
getConstraintFactory()
TheConstraintFactory
that build this.-
Methods inherited from class org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream
buildConstraintWeightExtractor, buildConstraintWeightExtractor, getRetrievalSemantics, impact, impactScore, impactScoreConfigurable, penalize, penalizeConfigurable, reward, rewardConfigurable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.optaplanner.core.api.score.stream.ConstraintStream
impact, penalize, penalizeConfigurable, reward, rewardConfigurable
-
-
-
-
Field Detail
-
constraintFactory
protected final DroolsConstraintFactory<Solution_> constraintFactory
-
-
Constructor Detail
-
DroolsAbstractConstraintStream
public DroolsAbstractConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, RetrievalSemantics retrievalSemantics)
-
-
Method Detail
-
buildConstraint
protected DroolsConstraint<Solution_> buildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, ScoreImpactType impactType, RuleBuilder<Solution_> ruleBuilder)
-
buildConstraintConfigurable
protected DroolsConstraint<Solution_> buildConstraintConfigurable(String constraintPackage, String constraintName, ScoreImpactType impactType, RuleBuilder<Solution_> ruleBuilder)
-
addChildStream
public void addChildStream(DroolsAbstractConstraintStream<Solution_> childStream)
-
getChildStreams
public Collection<DroolsAbstractConstraintStream<Solution_>> getChildStreams()
-
getConstraintFactory
public DroolsConstraintFactory<Solution_> getConstraintFactory()
Description copied from interface:ConstraintStream
TheConstraintFactory
that build this.- Specified by:
getConstraintFactory
in interfaceConstraintStream
- Specified by:
getConstraintFactory
in classAbstractConstraintStream<Solution_>
- Returns:
- never null
-
-