public final class BavetConstraintSessionFactory<Solution_> extends AbstractConstraintSessionFactory<Solution_>
| Constructor and Description |
|---|
BavetConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor,
List<BavetConstraint<Solution_>> constraintList) |
| Modifier and Type | Method and Description |
|---|---|
ConstraintSession<Solution_> |
buildSession(boolean constraintMatchEnabled,
Solution_ workingSolution)
This method is thread-safe.
|
getScoreDefinitionpublic BavetConstraintSessionFactory(SolutionDescriptor<Solution_> solutionDescriptor, List<BavetConstraint<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.