public class TerminationConfig extends AbstractConfig<TerminationConfig>
Constructor and Description |
---|
TerminationConfig() |
copyConfig, deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList, newInstance, toString
public Class<? extends Termination> getTerminationClass()
public void setTerminationClass(Class<? extends Termination> terminationClass)
public TerminationCompositionStyle getTerminationCompositionStyle()
public void setTerminationCompositionStyle(TerminationCompositionStyle terminationCompositionStyle)
public Duration getSpentLimit()
public void setSpentLimit(Duration spentLimit)
public Long getMillisecondsSpentLimit()
public void setMillisecondsSpentLimit(Long millisecondsSpentLimit)
public Long getSecondsSpentLimit()
public void setSecondsSpentLimit(Long secondsSpentLimit)
public Long getMinutesSpentLimit()
public void setMinutesSpentLimit(Long minutesSpentLimit)
public Long getHoursSpentLimit()
public void setHoursSpentLimit(Long hoursSpentLimit)
public Long getDaysSpentLimit()
public void setDaysSpentLimit(Long daysSpentLimit)
public Duration getUnimprovedSpentLimit()
public void setUnimprovedSpentLimit(Duration unimprovedSpentLimit)
public Long getUnimprovedMillisecondsSpentLimit()
public void setUnimprovedMillisecondsSpentLimit(Long unimprovedMillisecondsSpentLimit)
public Long getUnimprovedSecondsSpentLimit()
public void setUnimprovedSecondsSpentLimit(Long unimprovedSecondsSpentLimit)
public Long getUnimprovedMinutesSpentLimit()
public void setUnimprovedMinutesSpentLimit(Long unimprovedMinutesSpentLimit)
public Long getUnimprovedHoursSpentLimit()
public void setUnimprovedHoursSpentLimit(Long unimprovedHoursSpentLimit)
public Long getUnimprovedDaysSpentLimit()
public void setUnimprovedDaysSpentLimit(Long unimprovedDaysSpentLimit)
public String getUnimprovedScoreDifferenceThreshold()
public void setUnimprovedScoreDifferenceThreshold(String unimprovedScoreDifferenceThreshold)
public String getBestScoreLimit()
public void setBestScoreLimit(String bestScoreLimit)
public Boolean getBestScoreFeasible()
public void setBestScoreFeasible(Boolean bestScoreFeasible)
public Integer getStepCountLimit()
public void setStepCountLimit(Integer stepCountLimit)
public Integer getUnimprovedStepCountLimit()
public void setUnimprovedStepCountLimit(Integer unimprovedStepCountLimit)
@Deprecated public Long getCalculateCountLimit()
getScoreCalculationCountLimit()
instead. Will be removed in 8.0.@Deprecated public void setCalculateCountLimit(Long calculateCountLimit)
setScoreCalculationCountLimit(Long)
instead. Will be removed in 8.0.public Long getScoreCalculationCountLimit()
public void setScoreCalculationCountLimit(Long scoreCalculationCountLimit)
public List<TerminationConfig> getTerminationConfigList()
public void setTerminationConfigList(List<TerminationConfig> terminationConfigList)
public TerminationConfig withTerminationClass(Class<? extends Termination> terminationClass)
public TerminationConfig withTerminationCompositionStyle(TerminationCompositionStyle terminationCompositionStyle)
public TerminationConfig withSpentLimit(Duration spentLimit)
public TerminationConfig withMillisecondsSpentLimit(Long millisecondsSpentLimit)
public TerminationConfig withSecondsSpentLimit(Long secondsSpentLimit)
public TerminationConfig withMinutesSpentLimit(Long minutesSpentLimit)
public TerminationConfig withHoursSpentLimit(Long hoursSpentLimit)
public TerminationConfig withDaysSpentLimit(Long daysSpentLimit)
public TerminationConfig withUnimprovedSpentLimit(Duration unimprovedSpentLimit)
public TerminationConfig withUnimprovedMillisecondsSpentLimit(Long unimprovedMillisecondsSpentLimit)
public TerminationConfig withUnimprovedSecondsSpentLimit(Long unimprovedSecondsSpentLimit)
public TerminationConfig withUnimprovedMinutesSpentLimit(Long unimprovedMinutesSpentLimit)
public TerminationConfig withUnimprovedHoursSpentLimit(Long unimprovedHoursSpentLimit)
public TerminationConfig withUnimprovedDaysSpentLimit(Long unimprovedDaysSpentLimit)
public TerminationConfig withUnimprovedScoreDifferenceThreshold(String unimprovedScoreDifferenceThreshold)
public TerminationConfig withBestScoreLimit(String bestScoreLimit)
public TerminationConfig withBestScoreFeasible(Boolean bestScoreFeasible)
public TerminationConfig withStepCountLimit(Integer stepCountLimit)
public TerminationConfig withUnimprovedStepCountLimit(Integer unimprovedStepCountLimit)
public TerminationConfig withScoreCalculationCountLimit(Long scoreCalculationCountLimit)
public TerminationConfig withTerminationConfigList(List<TerminationConfig> terminationConfigList)
public Termination buildTermination(HeuristicConfigPolicy configPolicy, Termination chainedTermination)
public Termination buildTermination(HeuristicConfigPolicy configPolicy)
configPolicy
- never nullpublic Long calculateTimeMillisSpentLimit()
public void shortenTimeMillisSpentLimit(long timeMillisSpentLimit)
public Long calculateUnimprovedTimeMillisSpentLimit()
public void inherit(TerminationConfig inheritedConfig)
AbstractConfig
inheritedConfig
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.
inherit
in class AbstractConfig<TerminationConfig>
inheritedConfig
- never nullCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.