Class BavetScoringUniConstraintStream<Solution_,A>
- java.lang.Object
-
- org.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
-
- org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream<Solution_>
-
- org.optaplanner.constraint.streams.bavet.uni.BavetAbstractUniConstraintStream<Solution_,A>
-
- org.optaplanner.constraint.streams.bavet.uni.BavetScoringUniConstraintStream<Solution_,A>
-
- All Implemented Interfaces:
BavetScoringConstraintStream<Solution_>,InnerUniConstraintStream<A>,org.optaplanner.core.api.score.stream.ConstraintStream,org.optaplanner.core.api.score.stream.uni.UniConstraintStream<A>
public final class BavetScoringUniConstraintStream<Solution_,A> extends BavetAbstractUniConstraintStream<Solution_,A> implements BavetScoringConstraintStream<Solution_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.constraint.streams.bavet.uni.BavetAbstractUniConstraintStream
childStreamList
-
Fields inherited from class org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream
constraintFactory
-
-
Constructor Summary
Constructors Constructor Description BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent)BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, Function<A,BigDecimal> bigDecimalMatchWeigher)BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, ToIntFunction<A> intMatchWeigher)BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, ToLongFunction<A> longMatchWeigher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Score_ extends org.optaplanner.core.api.score.Score<Score_>>
voidbuildNode(NodeBuildHelper<Score_> buildHelper)voidcollectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet)org.optaplanner.core.api.score.stream.ConstraintStreamgetTupleSource()booleanguaranteesDistinct()This method will return true if the constraint stream is guaranteed to only produce distinct tuples.voidsetConstraint(BavetConstraint<Solution_> constraint)StringtoString()-
Methods inherited from class org.optaplanner.constraint.streams.bavet.uni.BavetAbstractUniConstraintStream
filter, flattenLast, getChildStreamList, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, ifExists, ifExistsIncludingNullVars, ifNotExists, ifNotExistsIncludingNullVars, impactScore, impactScore, impactScoreBigDecimal, impactScoreConfigurable, impactScoreConfigurable, impactScoreConfigurableBigDecimal, impactScoreConfigurableLong, impactScoreLong, join, join, map, shareAndAddChild
-
Methods inherited from class org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream
buildConstraint, buildConstraintConfigurable, getConstraintFactory
-
Methods inherited from class org.optaplanner.constraint.streams.common.AbstractConstraintStream
buildConstraintWeightExtractor, buildConstraintWeightExtractor, getRetrievalSemantics, impact, penalize, penalizeConfigurable, reward, rewardConfigurable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.optaplanner.core.api.score.stream.ConstraintStream
getConstraintFactory, impact, impact, penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
-
Methods inherited from interface org.optaplanner.constraint.streams.uni.InnerUniConstraintStream
distinct, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, join, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong
-
Methods inherited from interface org.optaplanner.core.api.score.stream.uni.UniConstraintStream
ifExists, ifExists, ifExists, ifExists, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOther, ifExistsOtherIncludingNullVars, ifExistsOtherIncludingNullVars, ifExistsOtherIncludingNullVars, ifExistsOtherIncludingNullVars, ifExistsOtherIncludingNullVars, ifExistsOtherIncludingNullVars, ifNotExists, ifNotExists, ifNotExists, ifNotExists, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOther, ifNotExistsOtherIncludingNullVars, ifNotExistsOtherIncludingNullVars, ifNotExistsOtherIncludingNullVars, ifNotExistsOtherIncludingNullVars, ifNotExistsOtherIncludingNullVars, ifNotExistsOtherIncludingNullVars, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, join, join, join, join, join, join, join, join, join, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong
-
-
-
-
Constructor Detail
-
BavetScoringUniConstraintStream
public BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent)
-
BavetScoringUniConstraintStream
public BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, ToIntFunction<A> intMatchWeigher)
-
BavetScoringUniConstraintStream
public BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, ToLongFunction<A> longMatchWeigher)
-
BavetScoringUniConstraintStream
public BavetScoringUniConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractUniConstraintStream<Solution_,A> parent, Function<A,BigDecimal> bigDecimalMatchWeigher)
-
-
Method Detail
-
setConstraint
public void setConstraint(BavetConstraint<Solution_> constraint)
- Specified by:
setConstraintin interfaceBavetScoringConstraintStream<Solution_>
-
guaranteesDistinct
public boolean guaranteesDistinct()
Description copied from interface:InnerUniConstraintStreamThis method will return true if the constraint stream is guaranteed to only produce distinct tuples. SeeInnerUniConstraintStream.distinct()for details.- Specified by:
guaranteesDistinctin interfaceInnerUniConstraintStream<Solution_>- Returns:
- true if the guarantee of distinct tuples is provided
-
collectActiveConstraintStreams
public void collectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet)
- Specified by:
collectActiveConstraintStreamsin interfaceBavetScoringConstraintStream<Solution_>- Specified by:
collectActiveConstraintStreamsin classBavetAbstractConstraintStream<Solution_>
-
getTupleSource
public org.optaplanner.core.api.score.stream.ConstraintStream getTupleSource()
- Specified by:
getTupleSourcein classBavetAbstractConstraintStream<Solution_>
-
buildNode
public <Score_ extends org.optaplanner.core.api.score.Score<Score_>> void buildNode(NodeBuildHelper<Score_> buildHelper)
- Specified by:
buildNodein classBavetAbstractConstraintStream<Solution_>
-
-