Class BavetAbstractConstraintStream<Solution_>
java.lang.Object
org.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream<Solution_>
- All Implemented Interfaces:
ConstraintStream
- Direct Known Subclasses:
BavetAbstractBiConstraintStream,BavetAbstractQuadConstraintStream,BavetAbstractTriConstraintStream,BavetAbstractUniConstraintStream
public abstract class BavetAbstractConstraintStream<Solution_>
extends AbstractConstraintStream<Solution_>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, RetrievalSemantics retrievalSemantics) -
Method Summary
Modifier and TypeMethodDescriptionprotected <A> BavetAbstractUniConstraintStream<Solution_,A> assertBavetUniConstraintStream(UniConstraintStream<A> otherStream) protected ConstraintbuildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, ScoreImpactType impactType, Object justificationFunction, Object indictedObjectsMapping, BavetScoringConstraintStream<Solution_> stream) abstract <Score_ extends Score<Score_>>
voidbuildNode(NodeBuildHelper<Score_> buildHelper) abstract voidcollectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet) Methods 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, RetrievalSemantics retrievalSemantics)
-
-
Method Details
-
buildConstraint
protected Constraint buildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, ScoreImpactType impactType, Object justificationFunction, Object indictedObjectsMapping, BavetScoringConstraintStream<Solution_> stream) -
collectActiveConstraintStreams
public abstract void collectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet) -
getTupleSource
-
buildNode
-
assertBavetUniConstraintStream
protected <A> BavetAbstractUniConstraintStream<Solution_,A> assertBavetUniConstraintStream(UniConstraintStream<A> otherStream) -
getConstraintFactory
- Specified by:
getConstraintFactoryin interfaceConstraintStream- Specified by:
getConstraintFactoryin classAbstractConstraintStream<Solution_>
-