Class BavetAbstractConstraintStream<Solution_>
- java.lang.Object
-
- org.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
-
- org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream<Solution_>
-
- All Implemented Interfaces:
org.optaplanner.core.api.score.stream.ConstraintStream
- Direct Known Subclasses:
BavetAbstractBiConstraintStream
,BavetAbstractQuadConstraintStream
,BavetAbstractTriConstraintStream
,BavetAbstractUniConstraintStream
public abstract class BavetAbstractConstraintStream<Solution_> extends org.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
-
-
Field Summary
Fields Modifier and Type Field Description protected BavetConstraintFactory<Solution_>
constraintFactory
-
Constructor Summary
Constructors Constructor Description BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, org.optaplanner.constraint.streams.common.RetrievalSemantics retrievalSemantics)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <A> BavetAbstractUniConstraintStream<Solution_,A>
assertBavetUniConstraintStream(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<A> otherStream)
protected BavetConstraint<Solution_>
buildConstraint(String constraintPackage, String constraintName, org.optaplanner.core.api.score.Score<?> constraintWeight, org.optaplanner.constraint.streams.common.ScoreImpactType impactType, BavetScoringConstraintStream<Solution_> scoringConstraintStream)
protected BavetConstraint<Solution_>
buildConstraintConfigurable(String constraintPackage, String constraintName, org.optaplanner.constraint.streams.common.ScoreImpactType impactType, BavetScoringConstraintStream<Solution_> scoringConstraintStream)
abstract <Score_ extends org.optaplanner.core.api.score.Score<Score_>>
voidbuildNode(NodeBuildHelper<Score_> buildHelper)
abstract void
collectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet)
BavetConstraintFactory<Solution_>
getConstraintFactory()
abstract org.optaplanner.core.api.score.stream.ConstraintStream
getTupleSource()
-
Methods inherited from class org.optaplanner.constraint.streams.common.AbstractConstraintStream
buildConstraintWeightExtractor, buildConstraintWeightExtractor, getRetrievalSemantics, impact, impactScore, impactScoreConfigurable, penalize, penalizeConfigurable, reward, rewardConfigurable
-
-
-
-
Field Detail
-
constraintFactory
protected final BavetConstraintFactory<Solution_> constraintFactory
-
-
Constructor Detail
-
BavetAbstractConstraintStream
public BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, org.optaplanner.constraint.streams.common.RetrievalSemantics retrievalSemantics)
-
-
Method Detail
-
buildConstraint
protected BavetConstraint<Solution_> buildConstraint(String constraintPackage, String constraintName, org.optaplanner.core.api.score.Score<?> constraintWeight, org.optaplanner.constraint.streams.common.ScoreImpactType impactType, BavetScoringConstraintStream<Solution_> scoringConstraintStream)
-
buildConstraintConfigurable
protected BavetConstraint<Solution_> buildConstraintConfigurable(String constraintPackage, String constraintName, org.optaplanner.constraint.streams.common.ScoreImpactType impactType, BavetScoringConstraintStream<Solution_> scoringConstraintStream)
-
collectActiveConstraintStreams
public abstract void collectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet)
-
getTupleSource
public abstract org.optaplanner.core.api.score.stream.ConstraintStream getTupleSource()
-
buildNode
public abstract <Score_ extends org.optaplanner.core.api.score.Score<Score_>> void buildNode(NodeBuildHelper<Score_> buildHelper)
-
assertBavetUniConstraintStream
protected <A> BavetAbstractUniConstraintStream<Solution_,A> assertBavetUniConstraintStream(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<A> otherStream)
-
getConstraintFactory
public BavetConstraintFactory<Solution_> getConstraintFactory()
- Specified by:
getConstraintFactory
in interfaceorg.optaplanner.core.api.score.stream.ConstraintStream
- Specified by:
getConstraintFactory
in classorg.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
-
-