Class ScoreDirectorFactoryConfig
java.lang.Object
org.optaplanner.core.config.AbstractConfig<ScoreDirectorFactoryConfig>
org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig
-
Field Summary
Modifier and TypeFieldDescriptionprotected ScoreDirectorFactoryConfig
protected Class<? extends ConstraintProvider>
protected ConstraintStreamImplType
protected Boolean
protected Class<? extends EasyScoreCalculator>
protected Supplier
protected Class<? extends IncrementalScoreCalculator>
protected String
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it.Class<? extends ConstraintProvider>
Class<? extends EasyScoreCalculator>
For internal use only, get the generated Gizmo KieBaseSupplier.Class<? extends IncrementalScoreCalculator>
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.inherit
(ScoreDirectorFactoryConfig inheritedConfig) Inherits each property of theinheritedConfig
unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).boolean
Deprecated, for removal: This API element is subject to removal in a future version.void
setAssertionScoreDirectorFactory
(ScoreDirectorFactoryConfig assertionScoreDirectorFactory) void
setConstraintProviderClass
(Class<? extends ConstraintProvider> constraintProviderClass) void
setConstraintProviderCustomProperties
(Map<String, String> constraintProviderCustomProperties) void
setConstraintStreamImplType
(ConstraintStreamImplType constraintStreamImplType) void
setDroolsAlphaNetworkCompilationEnabled
(Boolean droolsAlphaNetworkCompilationEnabled) void
setEasyScoreCalculatorClass
(Class<? extends EasyScoreCalculator> easyScoreCalculatorClass) void
setEasyScoreCalculatorCustomProperties
(Map<String, String> easyScoreCalculatorCustomProperties) void
setGizmoKieBaseSupplier
(Supplier gizmoKieBaseSupplier) For internal use only, set the generated Gizmo KieBaseSupplier.void
setIncrementalScoreCalculatorClass
(Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass) void
setIncrementalScoreCalculatorCustomProperties
(Map<String, String> incrementalScoreCalculatorCustomProperties) void
setInitializingScoreTrend
(String initializingScoreTrend) void
setKieBaseConfigurationProperties
(Map<String, String> kieBaseConfigurationProperties) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.void
setScoreDrlFileList
(List<File> scoreDrlFileList) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.void
setScoreDrlList
(List<String> scoreDrlList) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.void
visitReferencedClasses
(Consumer<Class<?>> classVisitor) Call the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs).withAssertionScoreDirectorFactory
(ScoreDirectorFactoryConfig assertionScoreDirectorFactory) withConstraintProviderClass
(Class<? extends ConstraintProvider> constraintProviderClass) withConstraintProviderCustomProperties
(Map<String, String> constraintProviderCustomProperties) withConstraintStreamImplType
(ConstraintStreamImplType constraintStreamImplType) withDroolsAlphaNetworkCompilationEnabled
(boolean droolsAlphaNetworkCompilationEnabled) withEasyScoreCalculatorClass
(Class<? extends EasyScoreCalculator> easyScoreCalculatorClass) withEasyScoreCalculatorCustomProperties
(Map<String, String> easyScoreCalculatorCustomProperties) withGizmoKieBaseSupplier
(Supplier kieBaseSupplier) For internal use only, set the generated Gizmo KieBaseSupplier.withIncrementalScoreCalculatorClass
(Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass) withIncrementalScoreCalculatorCustomProperties
(Map<String, String> incrementalScoreCalculatorCustomProperties) withInitializingScoreTrend
(String initializingScoreTrend) withScoreDrlFileList
(List<File> scoreDrlFileList) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.withScoreDrlFiles
(File... scoreDrlFiles) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.withScoreDrlList
(List<String> scoreDrlList) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.withScoreDrls
(String... scoreDrls) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner.Methods inherited from class org.optaplanner.core.config.AbstractConfig
toString
-
Field Details
-
easyScoreCalculatorClass
-
easyScoreCalculatorCustomProperties
-
constraintProviderClass
-
constraintProviderCustomProperties
-
constraintStreamImplType
-
incrementalScoreCalculatorClass
-
incrementalScoreCalculatorCustomProperties
-
scoreDrlList
Deprecated, for removal: This API element is subject to removal in a future version. -
scoreDrlFileList
Deprecated, for removal: This API element is subject to removal in a future version. -
gizmoKieBaseSupplier
-
droolsAlphaNetworkCompilationEnabled
-
kieBaseConfigurationProperties
Deprecated, for removal: This API element is subject to removal in a future version. -
initializingScoreTrend
-
assertionScoreDirectorFactory
-
-
Constructor Details
-
ScoreDirectorFactoryConfig
public ScoreDirectorFactoryConfig()
-
-
Method Details
-
getEasyScoreCalculatorClass
-
setEasyScoreCalculatorClass
public void setEasyScoreCalculatorClass(Class<? extends EasyScoreCalculator> easyScoreCalculatorClass) -
getEasyScoreCalculatorCustomProperties
-
setEasyScoreCalculatorCustomProperties
-
getConstraintProviderClass
-
setConstraintProviderClass
-
getConstraintProviderCustomProperties
-
setConstraintProviderCustomProperties
-
getConstraintStreamImplType
-
setConstraintStreamImplType
-
getIncrementalScoreCalculatorClass
-
setIncrementalScoreCalculatorClass
public void setIncrementalScoreCalculatorClass(Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass) -
getIncrementalScoreCalculatorCustomProperties
-
setIncrementalScoreCalculatorCustomProperties
-
getScoreDrlList
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
setScoreDrlList
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
getScoreDrlFileList
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
setScoreDrlFileList
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
getDroolsAlphaNetworkCompilationEnabled
-
getGizmoKieBaseSupplier
For internal use only, get the generated Gizmo KieBaseSupplier. -
setGizmoKieBaseSupplier
For internal use only, set the generated Gizmo KieBaseSupplier. -
setDroolsAlphaNetworkCompilationEnabled
-
getKieBaseConfigurationProperties
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
setKieBaseConfigurationProperties
@Deprecated(forRemoval=true) public void setKieBaseConfigurationProperties(Map<String, String> kieBaseConfigurationProperties) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
getInitializingScoreTrend
-
setInitializingScoreTrend
-
getAssertionScoreDirectorFactory
-
setAssertionScoreDirectorFactory
public void setAssertionScoreDirectorFactory(ScoreDirectorFactoryConfig assertionScoreDirectorFactory) -
withEasyScoreCalculatorClass
public ScoreDirectorFactoryConfig withEasyScoreCalculatorClass(Class<? extends EasyScoreCalculator> easyScoreCalculatorClass) -
withEasyScoreCalculatorCustomProperties
public ScoreDirectorFactoryConfig withEasyScoreCalculatorCustomProperties(Map<String, String> easyScoreCalculatorCustomProperties) -
withConstraintProviderClass
public ScoreDirectorFactoryConfig withConstraintProviderClass(Class<? extends ConstraintProvider> constraintProviderClass) -
withConstraintProviderCustomProperties
public ScoreDirectorFactoryConfig withConstraintProviderCustomProperties(Map<String, String> constraintProviderCustomProperties) -
withConstraintStreamImplType
public ScoreDirectorFactoryConfig withConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType) -
withIncrementalScoreCalculatorClass
public ScoreDirectorFactoryConfig withIncrementalScoreCalculatorClass(Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass) -
withIncrementalScoreCalculatorCustomProperties
public ScoreDirectorFactoryConfig withIncrementalScoreCalculatorCustomProperties(Map<String, String> incrementalScoreCalculatorCustomProperties) -
withScoreDrlList
@Deprecated(forRemoval=true) public ScoreDirectorFactoryConfig withScoreDrlList(List<String> scoreDrlList) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
withScoreDrls
Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
withScoreDrlFileList
@Deprecated(forRemoval=true) public ScoreDirectorFactoryConfig withScoreDrlFileList(List<File> scoreDrlFileList) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
withScoreDrlFiles
@Deprecated(forRemoval=true) public ScoreDirectorFactoryConfig withScoreDrlFiles(File... scoreDrlFiles) Deprecated, for removal: This API element is subject to removal in a future version.Score DRL is deprecated and will be removed in a future major version of OptaPlanner. See DRL to Constraint Streams migration recipe. -
withGizmoKieBaseSupplier
For internal use only, set the generated Gizmo KieBaseSupplier. -
withDroolsAlphaNetworkCompilationEnabled
public ScoreDirectorFactoryConfig withDroolsAlphaNetworkCompilationEnabled(boolean droolsAlphaNetworkCompilationEnabled) -
withInitializingScoreTrend
-
withAssertionScoreDirectorFactory
public ScoreDirectorFactoryConfig withAssertionScoreDirectorFactory(ScoreDirectorFactoryConfig assertionScoreDirectorFactory) -
inherit
Description copied from class:AbstractConfig
Inherits each property of theinheritedConfig
unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this
AbstractConfig
composition is replaced, it should not affect the inherited composition instance.- Specified by:
inherit
in classAbstractConfig<ScoreDirectorFactoryConfig>
- Parameters:
inheritedConfig
- never null- Returns:
- this
-
copyConfig
Description copied from class:AbstractConfig
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it.- Specified by:
copyConfig
in classAbstractConfig<ScoreDirectorFactoryConfig>
- Returns:
- new instance
-
visitReferencedClasses
Description copied from class:AbstractConfig
Call the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs). Required to create the bean factory in Quarkus.- Specified by:
visitReferencedClasses
in classAbstractConfig<ScoreDirectorFactoryConfig>
- Parameters:
classVisitor
- The visitor of classes, never null. Can accept null instances of Class.
-
isDroolsAlphaNetworkCompilationEnabled
Deprecated, for removal: This API element is subject to removal in a future version.
-