public class DroolsConstraintSessionFactory<Solution_> extends Object implements ConstraintSessionFactory<Solution_>
Constructor and Description |
---|
DroolsConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor,
org.kie.api.KieBase kieBase,
List<DroolsConstraint<Solution_>> constraintList) |
Modifier and Type | Method and Description |
---|---|
ConstraintSession<Solution_> |
buildSession(boolean constraintMatchEnabled,
Solution_ workingSolution)
This method is thread-safe.
|
public DroolsConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase, List<DroolsConstraint<Solution_>> constraintList)
public ConstraintSession<Solution_> buildSession(boolean constraintMatchEnabled, Solution_ workingSolution)
ConstraintSessionFactory
buildSession
in interface ConstraintSessionFactory<Solution_>
constraintMatchEnabled
- true if ScoreDirector.isConstraintMatchEnabled()
should be trueworkingSolution
- never nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.