Class ScoreDirectorFactoryConfig
java.lang.Object
org.optaplanner.core.config.AbstractConfig<ScoreDirectorFactoryConfig>
org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ScoreDirectorFactoryConfigprotected Class<? extends ConstraintProvider>protected ConstraintStreamImplTypeprotected Booleanprotected Class<? extends EasyScoreCalculator>protected Supplierprotected Class<? extends IncrementalScoreCalculator>protected StringDeprecated, 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
Constructors -
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 theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).booleanDeprecated, for removal: This API element is subject to removal in a future version.voidsetAssertionScoreDirectorFactory(ScoreDirectorFactoryConfig assertionScoreDirectorFactory) voidsetConstraintProviderClass(Class<? extends ConstraintProvider> constraintProviderClass) voidsetConstraintProviderCustomProperties(Map<String, String> constraintProviderCustomProperties) voidsetConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType) voidsetDroolsAlphaNetworkCompilationEnabled(Boolean droolsAlphaNetworkCompilationEnabled) voidsetEasyScoreCalculatorClass(Class<? extends EasyScoreCalculator> easyScoreCalculatorClass) voidsetEasyScoreCalculatorCustomProperties(Map<String, String> easyScoreCalculatorCustomProperties) voidsetGizmoKieBaseSupplier(Supplier gizmoKieBaseSupplier) For internal use only, set the generated Gizmo KieBaseSupplier.voidsetIncrementalScoreCalculatorClass(Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass) voidsetIncrementalScoreCalculatorCustomProperties(Map<String, String> incrementalScoreCalculatorCustomProperties) voidsetInitializingScoreTrend(String initializingScoreTrend) voidsetKieBaseConfigurationProperties(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.voidsetScoreDrlFileList(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.voidsetScoreDrlList(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.voidvisitReferencedClasses(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:AbstractConfigInherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this
AbstractConfigcomposition is replaced, it should not affect the inherited composition instance.- Specified by:
inheritin classAbstractConfig<ScoreDirectorFactoryConfig>- Parameters:
inheritedConfig- never null- Returns:
- this
-
copyConfig
Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.- Specified by:
copyConfigin classAbstractConfig<ScoreDirectorFactoryConfig>- Returns:
- new instance
-
visitReferencedClasses
Description copied from class:AbstractConfigCall 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:
visitReferencedClassesin 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.
-