org.optaplanner.core.impl.score.stream.bavet.common

## Class BavetAbstractConstraintStream<Solution_>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream<Solution_>
  - - org.optaplanner.core.impl.score.stream.bavet.common.BavetAbstractConstraintStream<Solution_>

- All Implemented Interfaces:
    ConstraintStream
  Direct Known Subclasses:
    BavetAbstractBiConstraintStream, BavetAbstractTriConstraintStream, BavetAbstractUniConstraintStream

      public abstract class BavetAbstractConstraintStream<Solution_>
      extends AbstractConstraintStream<Solution_>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected BavetConstraintFactory<Solution_>` | `constraintFactory`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected BavetConstraint<Solution_>` | `buildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, ScoreImpactType impactType)`
    `protected BavetConstraint<Solution_>` | `buildConstraintConfigurable(String constraintPackage, String constraintName, ScoreImpactType impactType)`
    `BavetConstraintFactory<Solution_>` | `getConstraintFactory()` The `ConstraintFactory` that build this.
    `abstract List<BavetFromUniConstraintStream<Solution_,Object>>` | `getFromStreamList()`

    - ### Methods inherited from class org.optaplanner.core.impl.score.stream.common.AbstractConstraintStream

      `buildConstraintWeightExtractor, buildConstraintWeightExtractor, getCardinality, impact, impactScore, impactScoreConfigurable, penalize, penalizeConfigurable, reward, rewardConfigurable`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

      `impact, penalize, penalizeConfigurable, reward, rewardConfigurable`

- - ### Field Detail

    - #### constraintFactory

          protected final BavetConstraintFactory<Solution_> constraintFactory

  - ### Constructor Detail

    - #### BavetAbstractConstraintStream

          public BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory)

  - ### Method Detail

    - #### buildConstraint

          protected BavetConstraint<Solution_> buildConstraint(String constraintPackage,
                                                               String constraintName,
                                                               Score<?> constraintWeight,
                                                               ScoreImpactType impactType)

    - #### buildConstraintConfigurable

          protected BavetConstraint<Solution_> buildConstraintConfigurable(String constraintPackage,
                                                                           String constraintName,
                                                                           ScoreImpactType impactType)

    - #### getFromStreamList

          public abstract List<BavetFromUniConstraintStream<Solution_,Object>> getFromStreamList()

    - #### getConstraintFactory

          public BavetConstraintFactory<Solution_> getConstraintFactory()

      Description copied from interface: `ConstraintStream`
      The `ConstraintFactory` that build this.
      Specified by:
        `getConstraintFactory` in interface `ConstraintStream`
      Specified by:
        `getConstraintFactory` in class `AbstractConstraintStream<Solution_>`
      Returns:
        never null

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