org.optaplanner.core.impl.score.director.drools
Class DroolsScoreDirectorFactory
java.lang.Object
org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
org.optaplanner.core.impl.score.director.drools.DroolsScoreDirectorFactory
- All Implemented Interfaces:
- InnerScoreDirectorFactory, ScoreDirectorFactory
public class DroolsScoreDirectorFactory
- extends AbstractScoreDirectorFactory
Drools implementation of ScoreDirectorFactory
.
- See Also:
DroolsScoreDirector
,
ScoreDirectorFactory
Field Summary |
protected org.kie.api.KieBase |
kieBase
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
kieBase
protected org.kie.api.KieBase kieBase
DroolsScoreDirectorFactory
public DroolsScoreDirectorFactory(org.kie.api.KieBase kieBase)
getKieBase
public org.kie.api.KieBase getKieBase()
buildScoreDirector
public DroolsScoreDirector buildScoreDirector(boolean constraintMatchEnabledPreference)
- Description copied from interface:
InnerScoreDirectorFactory
- Like
InnerScoreDirectorFactory.buildScoreDirector()
, but optionally disables ConstraintMatch
tracking
for more performance (presuming the ScoreDirector
implementation actually supports it to begin with).
- Parameters:
constraintMatchEnabledPreference
- false if a ScoreDirector
implementation
should not do ConstraintMatch
tracking even if it supports it.
- Returns:
- never null
- See Also:
ScoreDirector.isConstraintMatchEnabled()
,
ScoreDirector.getConstraintMatchTotals()
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.