org.optaplanner.core.impl.score.stream.drools.quad

## Class DroolsScoringQuadConstraintStream<Solution_,A,B,C,D>

- 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.quad.DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D>
      - - org.optaplanner.core.impl.score.stream.drools.quad.DroolsScoringQuadConstraintStream<Solution_,A,B,C,D>

- All Implemented Interfaces:
    ConstraintStream, QuadConstraintStream<A,B,C,D>, InnerQuadConstraintStream<A,B,C,D>

      public final class DroolsScoringQuadConstraintStream<Solution_,A,B,C,D>
      extends DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D>

- - ### Field Summary

    - ### Fields inherited from class org.optaplanner.core.impl.score.stream.drools.quad.DroolsAbstractQuadConstraintStream

      `parent`

    - ### Fields inherited from class org.optaplanner.core.impl.score.stream.drools.common.DroolsAbstractConstraintStream

      `constraintFactory`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent)`
    `DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, QuadFunction<A,B,C,D,BigDecimal> bigDecimalMatchWeigher)`
    `DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, ToIntQuadFunction<A,B,C,D> intMatchWeigher)`
    `DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory, DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent, ToLongQuadFunction<A,B,C,D> longMatchWeigher)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<org.drools.model.RuleItemBuilder<?>>` | `createRuleItemBuilders(DroolsConstraint<?> constraint, org.drools.model.Global<? extends AbstractScoreHolder<?>> scoreHolderGlobal)` Assemble elements of the rule that will process this stream and turn it into a constraint match.
    `DroolsQuadCondition<A,B,C,D,?>` | `getCondition()`
    `Class[]` | `getExpectedJustificationTypes()` As defined by `DroolsRuleStructure.getExpectedJustificationTypes()`.
    `String` | `toString()`

    - ### Methods inherited from class org.optaplanner.core.impl.score.stream.drools.quad.DroolsAbstractQuadConstraintStream

      `filter, getCardinality, getFromStreamList, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, ifExists, ifNotExists, impactScore, impactScore, impactScoreBigDecimal, impactScoreConfigurable, impactScoreConfigurable, impactScoreConfigurableBigDecimal, impactScoreConfigurableLong, impactScoreLong`

    - ### 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, 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.impl.score.stream.quad.InnerQuadConstraintStream

      `impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, penalize, penalizeBigDecimal, penalizeConfigurable, penalizeConfigurableBigDecimal, penalizeConfigurableLong, penalizeLong, reward, rewardBigDecimal, rewardConfigurable, rewardConfigurableBigDecimal, rewardConfigurableLong, rewardLong`

    - ### Methods inherited from interface org.optaplanner.core.api.score.stream.quad.QuadConstraintStream

      `ifExists, ifExists, ifExists, ifExists, ifNotExists, ifNotExists, ifNotExists, ifNotExists, impact, impactBigDecimal, impactConfigurable, impactConfigurableBigDecimal, impactConfigurableLong, impactLong, 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`

- - ### Constructor Detail

    - #### DroolsScoringQuadConstraintStream

          public DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent)

    - #### DroolsScoringQuadConstraintStream

          public DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
                                                   ToIntQuadFunction<A,B,C,D> intMatchWeigher)

    - #### DroolsScoringQuadConstraintStream

          public DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
                                                   ToLongQuadFunction<A,B,C,D> longMatchWeigher)

    - #### DroolsScoringQuadConstraintStream

          public DroolsScoringQuadConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
                                                   DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D> parent,
                                                   QuadFunction<A,B,C,D,BigDecimal> bigDecimalMatchWeigher)

  - ### Method Detail

    - #### createRuleItemBuilders

          public List<org.drools.model.RuleItemBuilder<?>> createRuleItemBuilders(DroolsConstraint<?> constraint,
                                                                                  org.drools.model.Global<? extends AbstractScoreHolder<?>> scoreHolderGlobal)

      Description copied from class: `DroolsAbstractConstraintStream`
      Assemble elements of the rule that will process this stream and turn it into a constraint match. Will be ignored unless on a scoring stream such as `DroolsScoringUniConstraintStream`.
      Overrides:
        `createRuleItemBuilders` in class `DroolsAbstractConstraintStream<Solution_>`
      Parameters:
        `constraint` - constraint which is being scored
        `scoreHolderGlobal` - contains the score to be affected
      Returns:
        rule representing this constraint stream

    - #### getCondition

          public DroolsQuadCondition<A,B,C,D,?> getCondition()

      Specified by:
        `getCondition` in class `DroolsAbstractQuadConstraintStream<Solution_,A,B,C,D>`

    - #### getExpectedJustificationTypes

          public Class[] getExpectedJustificationTypes()

      Description copied from class: `DroolsAbstractConstraintStream`
      As defined by `DroolsRuleStructure.getExpectedJustificationTypes()`. May only be called on scoring streams.
      Overrides:
        `getExpectedJustificationTypes` in class `DroolsAbstractConstraintStream<Solution_>`
      Returns:
        never null, never empty

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.