Class BavetFilterBiConstraintStream<Solution_,A,B>
- java.lang.Object
-
- org.optaplanner.constraint.streams.common.AbstractConstraintStream<Solution_>
-
- org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream<Solution_>
-
- org.optaplanner.constraint.streams.bavet.bi.BavetAbstractBiConstraintStream<Solution_,A,B>
-
- org.optaplanner.constraint.streams.bavet.bi.BavetFilterBiConstraintStream<Solution_,A,B>
-
- All Implemented Interfaces:
InnerBiConstraintStream<A,B>,org.optaplanner.core.api.score.stream.bi.BiConstraintStream<A,B>,org.optaplanner.core.api.score.stream.ConstraintStream
public final class BavetFilterBiConstraintStream<Solution_,A,B> extends BavetAbstractBiConstraintStream<Solution_,A,B>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.constraint.streams.bavet.bi.BavetAbstractBiConstraintStream
childStreamList
-
Fields inherited from class org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream
constraintFactory
-
-
Constructor Summary
Constructors Constructor Description BavetFilterBiConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractBiConstraintStream<Solution_,A,B> parent, BiPredicate<A,B> predicate)
-
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)booleanequals(Object o)org.optaplanner.core.api.score.stream.ConstraintStreamgetTupleSource()booleanguaranteesDistinct()This method will return true if the constraint stream is guaranteed to only produce distinct tuples.inthashCode()StringtoString()-
Methods inherited from class org.optaplanner.constraint.streams.bavet.bi.BavetAbstractBiConstraintStream
filter, flattenLast, getChildStreamList, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, ifExists, ifExists, ifExistsIncludingNullVars, ifNotExists, ifNotExists, ifNotExistsIncludingNullVars, impactScore, impactScore, impactScoreBigDecimal, impactScoreConfigurable, impactScoreConfigurable, impactScoreConfigurableBigDecimal, impactScoreConfigurableLong, impactScoreLong, join, map, shareAndAddChild
-
Methods inherited from class org.optaplanner.constraint.streams.bavet.common.BavetAbstractConstraintStream
assertBavetUniConstraintStream, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.optaplanner.core.api.score.stream.bi.BiConstraintStream
ifExists, ifExists, ifExists, ifExists, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifExistsIncludingNullVars, ifNotExists, ifNotExists, ifNotExists, ifNotExists, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, ifNotExistsIncludingNullVars, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, join, join, join, join, join, join, join, join, join, join, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong
-
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.bi.InnerBiConstraintStream
distinct, getRetrievalSemantics, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, join, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong
-
-
-
-
Constructor Detail
-
BavetFilterBiConstraintStream
public BavetFilterBiConstraintStream(BavetConstraintFactory<Solution_> constraintFactory, BavetAbstractBiConstraintStream<Solution_,A,B> parent, BiPredicate<A,B> predicate)
-
-
Method Detail
-
guaranteesDistinct
public boolean guaranteesDistinct()
Description copied from interface:InnerBiConstraintStreamThis method will return true if the constraint stream is guaranteed to only produce distinct tuples. SeeInnerBiConstraintStream.distinct()for details.- Returns:
- true if the guarantee of distinct tuples is provided
-
collectActiveConstraintStreams
public void collectActiveConstraintStreams(Set<BavetAbstractConstraintStream<Solution_>> constraintStreamSet)
- 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_>
-
-