public class DroolsConstraintSessionFactory<Solution_> extends AbstractConstraintSessionFactory<Solution_>
| Constructor and Description |
|---|
DroolsConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor,
org.drools.model.Model model,
List<DroolsConstraint<Solution_>> constraintList) |
| Modifier and Type | Method and Description |
|---|---|
ConstraintSession<Solution_> |
buildSession(boolean constraintMatchEnabled,
Solution_ workingSolution)
This method is thread-safe.
|
getScoreDefinitionpublic DroolsConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.drools.model.Model model, List<DroolsConstraint<Solution_>> constraintList)
public ConstraintSession<Solution_> buildSession(boolean constraintMatchEnabled, Solution_ workingSolution)
ConstraintSessionFactoryconstraintMatchEnabled - true if ScoreDirector.isConstraintMatchEnabled() should be trueworkingSolution - if null, uniform synthetic constraint weights will be appliedCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.