Solution_ - the solution type, the class with the PlanningSolution annotationpublic class DroolsScoreDirectorFactory<Solution_> extends AbstractScoreDirectorFactory<Solution_>
ScoreDirectorFactory.DroolsScoreDirector,
ScoreDirectorFactory| Modifier and Type | Field and Description |
|---|---|
protected org.kie.api.runtime.KieContainer |
kieContainer |
protected String |
ksessionName |
assertClonedSolution, assertionScoreDirectorFactory, initializingScoreTrend, logger, solutionDescriptor| Modifier | Constructor and Description |
|---|---|
protected |
DroolsScoreDirectorFactory(org.kie.api.KieBase kieBase)
For
LegacyDroolsScoreDirectorFactory only. |
|
DroolsScoreDirectorFactory(org.kie.api.runtime.KieContainer kieContainer,
String ksessionName) |
| Modifier and Type | Method and Description |
|---|---|
DroolsScoreDirector<Solution_> |
buildScoreDirector(boolean lookUpEnabled,
boolean constraintMatchEnabledPreference)
Like
InnerScoreDirectorFactory.buildScoreDirector(), but optionally disables ConstraintMatch tracking and look up
for more performance (presuming the ScoreDirector implementation actually supports it to begin with). |
protected void |
checkIfGlobalScoreHolderExists(org.kie.api.KieBase kieBase) |
org.kie.api.runtime.KieContainer |
getKieContainer() |
String |
getKsessionName() |
org.kie.api.runtime.KieSession |
newKieSession() |
void |
setSolutionDescriptor(SolutionDescriptor<Solution_> solutionDescriptor) |
assertScoreFromScratch, buildScoreDirector, getAssertionScoreDirectorFactory, getInitializingScoreTrend, getScoreDefinition, getSolutionDescriptor, isAssertClonedSolution, setAssertClonedSolution, setAssertionScoreDirectorFactory, setInitializingScoreTrendprotected final org.kie.api.runtime.KieContainer kieContainer
protected final String ksessionName
protected DroolsScoreDirectorFactory(org.kie.api.KieBase kieBase)
LegacyDroolsScoreDirectorFactory only. Do not use.kieBase - never nullpublic DroolsScoreDirectorFactory(org.kie.api.runtime.KieContainer kieContainer,
String ksessionName)
kieContainer - never nullksessionName - null if the default ksession should be usedprotected void checkIfGlobalScoreHolderExists(org.kie.api.KieBase kieBase)
public void setSolutionDescriptor(SolutionDescriptor<Solution_> solutionDescriptor)
setSolutionDescriptor in class AbstractScoreDirectorFactory<Solution_>public org.kie.api.runtime.KieContainer getKieContainer()
public String getKsessionName()
public DroolsScoreDirector<Solution_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
InnerScoreDirectorFactoryInnerScoreDirectorFactory.buildScoreDirector(), but optionally disables ConstraintMatch tracking and look up
for more performance (presuming the ScoreDirector implementation actually supports it to begin with).lookUpEnabled - true if a ScoreDirector implementation should track all working objects
for ScoreDirector.lookUpWorkingObject(Object)constraintMatchEnabledPreference - false if a ScoreDirector implementation
should not do ConstraintMatch tracking even if it supports it.ScoreDirector.isConstraintMatchEnabled(),
ScoreDirector.getConstraintMatchTotals()public org.kie.api.runtime.KieSession newKieSession()
Copyright © 2006–2017 JBoss by Red Hat. All rights reserved.