Class TestGenDroolsScoreDirectorFactory<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory<Solution_>
-
- org.optaplanner.core.impl.score.director.drools.DroolsScoreDirectorFactory<Solution_>
-
- org.optaplanner.core.impl.score.director.drools.testgen.TestGenDroolsScoreDirectorFactory<Solution_>
-
- All Implemented Interfaces:
InnerScoreDirectorFactory<Solution_>,ScoreDirectorFactory<Solution_>
public class TestGenDroolsScoreDirectorFactory<Solution_> extends DroolsScoreDirectorFactory<Solution_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.director.drools.DroolsScoreDirectorFactory
ruleToConstraintWeightExtractorMap
-
Fields inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertClonedSolution, assertionScoreDirectorFactory, initializingScoreTrend, logger, solutionDescriptor
-
-
Constructor Summary
Constructors Constructor Description TestGenDroolsScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase, List<String> scoreDrlList, List<File> scoreDrlFileList)Deprecated.for removal, legacy code.TestGenDroolsScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.runtime.KieContainer kieContainer, String ksessionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DroolsScoreDirector<Solution_>buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)LikeInnerScoreDirectorFactory.buildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).-
Methods inherited from class org.optaplanner.core.impl.score.director.drools.DroolsScoreDirectorFactory
checkIfGlobalScoreHolderExists, createRuleToConstraintWeightExtractorMap, getKieContainer, getKsessionName, getRuleToConstraintWeightExtractorMap, newKieSession
-
Methods inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertScoreFromScratch, buildScoreDirector, getAssertionScoreDirectorFactory, getInitializingScoreTrend, getScoreDefinition, getSolutionDescriptor, isAssertClonedSolution, setAssertClonedSolution, setAssertionScoreDirectorFactory, setInitializingScoreTrend
-
-
-
-
Constructor Detail
-
TestGenDroolsScoreDirectorFactory
@Deprecated public TestGenDroolsScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase, List<String> scoreDrlList, List<File> scoreDrlFileList)
Deprecated.for removal, legacy code.- Parameters:
solutionDescriptor- never nullkieBase- never nullscoreDrlList-scoreDrlFileList-
-
TestGenDroolsScoreDirectorFactory
public TestGenDroolsScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.runtime.KieContainer kieContainer, String ksessionName)
-
-
Method Detail
-
buildScoreDirector
public DroolsScoreDirector<Solution_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
Description copied from interface:InnerScoreDirectorFactoryLikeInnerScoreDirectorFactory.buildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).- Specified by:
buildScoreDirectorin interfaceInnerScoreDirectorFactory<Solution_>- Overrides:
buildScoreDirectorin classDroolsScoreDirectorFactory<Solution_>- Parameters:
lookUpEnabled- true if aScoreDirectorimplementation should track all working objects forScoreDirector.lookUpWorkingObject(Object)constraintMatchEnabledPreference- false if aScoreDirectorimplementation should not doConstraintMatchtracking even if it supports it.- Returns:
- never null
- See Also:
ScoreDirector.isConstraintMatchEnabled(),ScoreDirector.getConstraintMatchTotalMap()
-
-