Class DroolsFlatteningTriConstraintStream<Solution_,A,B,NewC>
- java.lang.Object
-
- org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream<Solution_>
-
- org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream<Solution_>
-
- org.optaplanner.core.impl.score.stream.drools.tri.DroolsAbstractTriConstraintStream<Solution_,A,B,NewC>
-
- org.optaplanner.core.impl.score.stream.drools.tri.DroolsFlatteningTriConstraintStream<Solution_,A,B,NewC>
-
- All Implemented Interfaces:
ConstraintStream
,TriConstraintStream<A,B,NewC>
,InnerTriConstraintStream<A,B,NewC>
public final class DroolsFlatteningTriConstraintStream<Solution_,A,B,NewC> extends DroolsAbstractTriConstraintStream<Solution_,A,B,NewC>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream
constraintFactory
-
-
Constructor Summary
Constructors Constructor Description DroolsFlatteningTriConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent, Function<C,Iterable<NewC>> triMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TriLeftHandSide<A,B,NewC>
getLeftHandSide()
boolean
guaranteesDistinct()
This method will return true if the constraint stream is guaranteed to only produce distinct tuples.String
toString()
-
Methods inherited from class org.optaplanner.core.impl.score.stream.drools.tri.DroolsAbstractTriConstraintStream
filter, flattenLast, 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
-
Methods inherited from class org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream
addChildStream, buildConstraint, buildConstraintConfigurable, getChildStreams, getConstraintFactory
-
Methods inherited from class org.optaplanner.core.impl.score.stream.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.core.impl.score.stream.tri.InnerTriConstraintStream
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.tri.TriConstraintStream
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, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong
-
-
-
-
Constructor Detail
-
DroolsFlatteningTriConstraintStream
public DroolsFlatteningTriConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractTriConstraintStream<Solution_,A,B,C> parent, Function<C,Iterable<NewC>> triMapping)
-
-
Method Detail
-
guaranteesDistinct
public boolean guaranteesDistinct()
Description copied from interface:InnerTriConstraintStream
This method will return true if the constraint stream is guaranteed to only produce distinct tuples. SeeInnerTriConstraintStream.distinct()
for details.- Returns:
- true if the guarantee of distinct tuples is provided
-
getLeftHandSide
public TriLeftHandSide<A,B,NewC> getLeftHandSide()
- Specified by:
getLeftHandSide
in classDroolsAbstractTriConstraintStream<Solution_,A,B,NewC>
-
-