Class TestGenDrlScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- java.lang.Object
-
- org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory<Solution_,Score_>
-
- org.optaplanner.core.impl.score.director.drl.DrlScoreDirectorFactory<Solution_,Score_>
-
- org.optaplanner.core.impl.score.director.drl.testgen.TestGenDrlScoreDirectorFactory<Solution_,Score_>
-
- All Implemented Interfaces:
InnerScoreDirectorFactory<Solution_,Score_>
,ScoreDirectorFactory<Solution_>
public class TestGenDrlScoreDirectorFactory<Solution_,Score_ extends Score<Score_>> extends DrlScoreDirectorFactory<Solution_,Score_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.director.drl.DrlScoreDirectorFactory
ruleToConstraintWeightExtractorMap
-
Fields inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertClonedSolution, assertionScoreDirectorFactory, initializingScoreTrend, logger, solutionDescriptor
-
-
Constructor Summary
Constructors Constructor Description TestGenDrlScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase, List<String> scoreDrlList, List<File> scoreDrlFileList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestGenDrlScoreDirector<Solution_,Score_>
buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
LikeInnerScoreDirectorFactory.buildScoreDirector()
, but optionally disablesConstraintMatch
tracking and look up for more performance (presuming theScoreDirector
implementation actually supports it to begin with).-
Methods inherited from class org.optaplanner.core.impl.score.director.drl.DrlScoreDirectorFactory
assertGlobalScoreHolderExists, createRuleToConstraintWeightExtractorMap, 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
-
TestGenDrlScoreDirectorFactory
public TestGenDrlScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase, List<String> scoreDrlList, List<File> scoreDrlFileList)
- Parameters:
solutionDescriptor
- never nullkieBase
- never nullscoreDrlList
-scoreDrlFileList
-
-
-
Method Detail
-
buildScoreDirector
public TestGenDrlScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
Description copied from interface:InnerScoreDirectorFactory
LikeInnerScoreDirectorFactory.buildScoreDirector()
, but optionally disablesConstraintMatch
tracking and look up for more performance (presuming theScoreDirector
implementation actually supports it to begin with).- Specified by:
buildScoreDirector
in interfaceInnerScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- Overrides:
buildScoreDirector
in classDrlScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- Parameters:
lookUpEnabled
- true if aScoreDirector
implementation should track all working objects forScoreDirector.lookUpWorkingObject(Object)
constraintMatchEnabledPreference
- false if aScoreDirector
implementation should not doConstraintMatch
tracking even if it supports it.- Returns:
- never null
- See Also:
InnerScoreDirector.isConstraintMatchEnabled()
,InnerScoreDirector.getConstraintMatchTotalMap()
-
-