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 -
Constructor Summary
ConstructorsConstructorDescriptionBavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, org.optaplanner.constraint.streams.common.RetrievalSemantics retrievalSemantics) -
Method Summary
Modifier and TypeMethodDescriptionprotected <A> BavetAbstractUniConstraintStream<Solution_,A> assertBavetUniConstraintStream(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<A> otherStream) protected org.optaplanner.core.api.score.stream.ConstraintbuildConstraint(String constraintPackage, String constraintName, org.optaplanner.core.api.score.Score<?> constraintWeight, org.optaplanner.constraint.streams.common.ScoreImpactType impactType, Object justificationFunction, Object indictedObjectsMapping, BavetScoringConstraintStream<Solution_> stream) abstract <Score_ extends org.optaplanner.core.api.score.Score<Score_>>
voidbuildNode(NodeBuildHelper<Score_> buildHelper) abstract voidcollectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet) abstract org.optaplanner.core.api.score.stream.ConstraintStreamMethods inherited from class org.optaplanner.constraint.streams.common.AbstractConstraintStream
buildConstraintWeightExtractor, buildConstraintWeightExtractor, getDefaultIndictedObjectsMapping, getDefaultJustificationMapping, getRetrievalSemanticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.api.score.stream.ConstraintStream
impact, impact, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
-
Field Details
-
constraintFactory
-
-
Constructor Details
-
BavetAbstractConstraintStream
public BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, org.optaplanner.constraint.streams.common.RetrievalSemantics retrievalSemantics)
-
-
Method Details
-
buildConstraint
protected org.optaplanner.core.api.score.stream.Constraint buildConstraint(String constraintPackage, String constraintName, org.optaplanner.core.api.score.Score<?> constraintWeight, org.optaplanner.constraint.streams.common.ScoreImpactType impactType, Object justificationFunction, Object indictedObjectsMapping, BavetScoringConstraintStream<Solution_> stream) -
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
- Specified by:
getConstraintFactoryin interfaceorg.optaplanner.core.api.score.stream.ConstraintStream- Specified by:
getConstraintFactoryin classorg.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
-