Package org.optaplanner.constraint.drl
Class DrlScoreDirectorFactoryService<Solution_,Score_ extends Score<Score_>>
- java.lang.Object
-
- org.optaplanner.constraint.drl.AbstractDrlScoreDirectorFactoryService<Solution_,Score_>
-
- org.optaplanner.constraint.drl.DrlScoreDirectorFactoryService<Solution_,Score_>
-
- All Implemented Interfaces:
ScoreDirectorFactoryService<Solution_,Score_>
public final class DrlScoreDirectorFactoryService<Solution_,Score_ extends Score<Score_>> extends AbstractDrlScoreDirectorFactoryService<Solution_,Score_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.constraint.drl.AbstractDrlScoreDirectorFactoryService
GENERATE_DROOLS_TEST_ON_ERROR_PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description DrlScoreDirectorFactoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<AbstractScoreDirectorFactory<Solution_,Score_>>
buildScoreDirectorFactory(ClassLoader classLoader, SolutionDescriptor<Solution_> solutionDescriptor, ScoreDirectorFactoryConfig config)
Returns aSupplier
which returns new instance of a score director defined byScoreDirectorFactoryService.getSupportedScoreDirectorType()
.protected DrlScoreDirectorFactory<Solution_,Score_>
createScoreDirectorFactory(ScoreDirectorFactoryConfig config, SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase)
-
Methods inherited from class org.optaplanner.constraint.drl.AbstractDrlScoreDirectorFactoryService
buildScoreDirectorFactory, getSupportedScoreDirectorType, isTestGenRequested
-
-
-
-
Method Detail
-
buildScoreDirectorFactory
public Supplier<AbstractScoreDirectorFactory<Solution_,Score_>> buildScoreDirectorFactory(ClassLoader classLoader, SolutionDescriptor<Solution_> solutionDescriptor, ScoreDirectorFactoryConfig config)
Description copied from interface:ScoreDirectorFactoryService
Returns aSupplier
which returns new instance of a score director defined byScoreDirectorFactoryService.getSupportedScoreDirectorType()
. This is done so that the actual factory is only instantiated after all the configuration fail-fasts have been performed.solutionDescriptor
- never null, solution descriptor provided by the solverconfig
- never null, configuration to use for instantiating the factory- Returns:
- null when this type is not configured
-
createScoreDirectorFactory
protected DrlScoreDirectorFactory<Solution_,Score_> createScoreDirectorFactory(ScoreDirectorFactoryConfig config, SolutionDescriptor<Solution_> solutionDescriptor, org.kie.api.KieBase kieBase)
- Specified by:
createScoreDirectorFactory
in classAbstractDrlScoreDirectorFactoryService<Solution_,Score_ extends Score<Score_>>
-
-