Class ScoreDirectorFactoryConfig
- java.lang.Object
-
- org.optaplanner.core.config.AbstractConfig<ScoreDirectorFactoryConfig>
-
- org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig
-
public class ScoreDirectorFactoryConfig extends AbstractConfig<ScoreDirectorFactoryConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected ScoreDirectorFactoryConfig
assertionScoreDirectorFactory
protected Class<? extends ConstraintProvider>
constraintProviderClass
protected Map<String,String>
constraintProviderCustomProperties
protected ConstraintStreamImplType
constraintStreamImplType
protected Boolean
droolsAlphaNetworkCompilationEnabled
protected Class<? extends EasyScoreCalculator>
easyScoreCalculatorClass
protected Map<String,String>
easyScoreCalculatorCustomProperties
protected Supplier<org.kie.api.KieBase>
gizmoKieBaseSupplier
protected Class<? extends IncrementalScoreCalculator>
incrementalScoreCalculatorClass
protected Map<String,String>
incrementalScoreCalculatorCustomProperties
protected String
initializingScoreTrend
protected Map<String,String>
kieBaseConfigurationProperties
protected List<File>
scoreDrlFileList
protected List<String>
scoreDrlList
-
Constructor Summary
Constructors Constructor Description ScoreDirectorFactoryConfig()
-
Method Summary
-
Methods inherited from class org.optaplanner.core.config.AbstractConfig
toString
-
-
-
-
Field Detail
-
easyScoreCalculatorClass
protected Class<? extends EasyScoreCalculator> easyScoreCalculatorClass
-
easyScoreCalculatorCustomProperties
protected Map<String,String> easyScoreCalculatorCustomProperties
-
constraintProviderClass
protected Class<? extends ConstraintProvider> constraintProviderClass
-
constraintStreamImplType
protected ConstraintStreamImplType constraintStreamImplType
-
incrementalScoreCalculatorClass
protected Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass
-
incrementalScoreCalculatorCustomProperties
protected Map<String,String> incrementalScoreCalculatorCustomProperties
-
gizmoKieBaseSupplier
protected Supplier<org.kie.api.KieBase> gizmoKieBaseSupplier
-
droolsAlphaNetworkCompilationEnabled
protected Boolean droolsAlphaNetworkCompilationEnabled
-
initializingScoreTrend
protected String initializingScoreTrend
-
assertionScoreDirectorFactory
protected ScoreDirectorFactoryConfig assertionScoreDirectorFactory
-
-
Method Detail
-
getEasyScoreCalculatorClass
public Class<? extends EasyScoreCalculator> getEasyScoreCalculatorClass()
-
setEasyScoreCalculatorClass
public void setEasyScoreCalculatorClass(Class<? extends EasyScoreCalculator> easyScoreCalculatorClass)
-
getEasyScoreCalculatorCustomProperties
public Map<String,String> getEasyScoreCalculatorCustomProperties()
-
setEasyScoreCalculatorCustomProperties
public void setEasyScoreCalculatorCustomProperties(Map<String,String> easyScoreCalculatorCustomProperties)
-
getConstraintProviderClass
public Class<? extends ConstraintProvider> getConstraintProviderClass()
-
setConstraintProviderClass
public void setConstraintProviderClass(Class<? extends ConstraintProvider> constraintProviderClass)
-
getConstraintProviderCustomProperties
public Map<String,String> getConstraintProviderCustomProperties()
-
setConstraintProviderCustomProperties
public void setConstraintProviderCustomProperties(Map<String,String> constraintProviderCustomProperties)
-
getConstraintStreamImplType
public ConstraintStreamImplType getConstraintStreamImplType()
-
setConstraintStreamImplType
public void setConstraintStreamImplType(ConstraintStreamImplType constraintStreamImplType)
-
getIncrementalScoreCalculatorClass
public Class<? extends IncrementalScoreCalculator> getIncrementalScoreCalculatorClass()
-
setIncrementalScoreCalculatorClass
public void setIncrementalScoreCalculatorClass(Class<? extends IncrementalScoreCalculator> incrementalScoreCalculatorClass)
-
getIncrementalScoreCalculatorCustomProperties
public Map<String,String> getIncrementalScoreCalculatorCustomProperties()
-
setIncrementalScoreCalculatorCustomProperties
public void setIncrementalScoreCalculatorCustomProperties(Map<String,String> incrementalScoreCalculatorCustomProperties)
-
getDroolsAlphaNetworkCompilationEnabled
public Boolean getDroolsAlphaNetworkCompilationEnabled()
-
getGizmoKieBaseSupplier
public Supplier<org.kie.api.KieBase> getGizmoKieBaseSupplier()
For internal use only, get the generated Gizmo KieBaseSupplier.
-
setGizmoKieBaseSupplier
public void setGizmoKieBaseSupplier(Supplier<org.kie.api.KieBase> gizmoKieBaseSupplier)
For internal use only, set the generated Gizmo KieBaseSupplier.
-
setDroolsAlphaNetworkCompilationEnabled
public void setDroolsAlphaNetworkCompilationEnabled(Boolean droolsAlphaNetworkCompilationEnabled)
-
setKieBaseConfigurationProperties
public void setKieBaseConfigurationProperties(Map<String,String> kieBaseConfigurationProperties)
-
getInitializingScoreTrend
public String getInitializingScoreTrend()
-
setInitializingScoreTrend
public void setInitializingScoreTrend(String initializingScoreTrend)
-
getAssertionScoreDirectorFactory
public ScoreDirectorFactoryConfig 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
public ScoreDirectorFactoryConfig withScoreDrlList(List<String> scoreDrlList)
-
withScoreDrls
public ScoreDirectorFactoryConfig withScoreDrls(String... scoreDrls)
-
withScoreDrlFileList
public ScoreDirectorFactoryConfig withScoreDrlFileList(List<File> scoreDrlFileList)
-
withScoreDrlFiles
public ScoreDirectorFactoryConfig withScoreDrlFiles(File... scoreDrlFiles)
-
withGizmoKieBaseSupplier
public ScoreDirectorFactoryConfig withGizmoKieBaseSupplier(Supplier<org.kie.api.KieBase> kieBaseSupplier)
For internal use only, set the generated Gizmo KieBaseSupplier.
-
withDroolsAlphaNetworkCompilationEnabled
public ScoreDirectorFactoryConfig withDroolsAlphaNetworkCompilationEnabled(boolean droolsAlphaNetworkCompilationEnabled)
-
withInitializingScoreTrend
public ScoreDirectorFactoryConfig withInitializingScoreTrend(String initializingScoreTrend)
-
withAssertionScoreDirectorFactory
public ScoreDirectorFactoryConfig withAssertionScoreDirectorFactory(ScoreDirectorFactoryConfig assertionScoreDirectorFactory)
-
inherit
public ScoreDirectorFactoryConfig inherit(ScoreDirectorFactoryConfig inheritedConfig)
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
public ScoreDirectorFactoryConfig 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
public void visitReferencedClasses(Consumer<Class<?>> classVisitor)
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
public boolean isDroolsAlphaNetworkCompilationEnabled()
-
-