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, boolean positive)`
    `protected BavetConstraint<Solution_>` | `buildConstraintConfigurable(String constraintPackage, String constraintName, boolean positive)`
    `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, impactScore, impactScoreConfigurable, penalize, penalizeConfigurable, reward, rewardConfigurable, validateConstraintId`

    - ### 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

      `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,
                                                               boolean positive)

    - #### buildConstraintConfigurable

          protected BavetConstraint<Solution_> buildConstraintConfigurable(String constraintPackage,
                                                                           String constraintName,
                                                                           boolean positive)

    - #### 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.