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

## Class DroolsConstraintSessionFactory<Solution_>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.drools.DroolsConstraintSessionFactory<Solution_>

- All Implemented Interfaces:
    ConstraintSessionFactory<Solution_>

      public class DroolsConstraintSessionFactory<Solution_>
      extends Object
      implements ConstraintSessionFactory<Solution_>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DroolsConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase, List<DroolsConstraint<Solution_>> constraintList)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ConstraintSession<Solution_>` | `buildSession(boolean constraintMatchEnabled, Solution_ workingSolution)` This method is thread-safe.

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

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

- - ### Constructor Detail

    - #### DroolsConstraintSessionFactory

          public DroolsConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor,
                                                org.kie.api.KieBase kieBase,
                                                List<DroolsConstraint<Solution_>> constraintList)

  - ### Method Detail

    - #### buildSession

          public ConstraintSession<Solution_> buildSession(boolean constraintMatchEnabled,
                                                           Solution_ workingSolution)

      Description copied from interface: `ConstraintSessionFactory`
      This method is thread-safe.
      Specified by:
        `buildSession` in interface `ConstraintSessionFactory<Solution_>`
      Parameters:
        `constraintMatchEnabled` - true if `ScoreDirector.isConstraintMatchEnabled()` should be true
        `workingSolution` - never null
      Returns:
        never null

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