Package de.uka.ipd.sdq.tcfmoop.config
Class InsignificantParetoFrontChangeConfig
java.lang.Object
de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
de.uka.ipd.sdq.tcfmoop.config.InsignificantParetoFrontChangeConfig
- All Implemented Interfaces:
IConfiguration
Configuration class for InsignificantParetoFrontChange termination criterion.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the minimum allowed difference, measured in coverage percentages between the two fronts.int
Get the number for the x.void
setMinimumAllowedDifference
(double percentages) Set the minimum allowed difference between the two fronts.void
setPastIterationNumber
(int pastInterationNumber) Sets the number for the x.boolean
Checks the configuration object for correctness.Methods inherited from class de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
getTerminationCriterionName
-
Constructor Details
-
InsignificantParetoFrontChangeConfig
public InsignificantParetoFrontChangeConfig()
-
-
Method Details
-
validateConfiguration
public boolean validateConfiguration()Checks the configuration object for correctness. Should be called before accessing any of the data of the configuration object- Returns:
- true - The configuration is correct false - The configuration is incomplete or wrong
-
setMinimumAllowedDifference
Set the minimum allowed difference between the two fronts. If the difference, measured in coverage percentages is smaller then the one entered here, then the improvement is considered insignificant. Else it is not. The parameter is a percentage value and is exacted to be in the interval [0, 1].- Parameters:
percentages
- Minimum allowed difference between the two pareto fronts. A percentage value in the interval [0, 1]- Throws:
InvalidConfigException
- if the supplied parameter do not conform to the required conditions.
-
getMinimumAllowedDifference
public double getMinimumAllowedDifference()Returns the minimum allowed difference, measured in coverage percentages between the two fronts. The value is guaranteed to be in the interval [0, 1]- Returns:
- the minimum allowed difference, measured in coverage percentages between the two fronts.
-
setPastIterationNumber
Sets the number for the x. past iteration to compare the current pareto front with.- Parameters:
compareWithIterationsAgo
- the number for the x. past generation to compare the current pareto front with.- Throws:
InvalidConfigException
- if the supplied parameter do not conform to the required conditions.
-
getPastIterationNumber
public int getPastIterationNumber()Get the number for the x. past generation to compare the current pareto front with.- Returns:
- the number for the x. past generation to compare the current pareto front with.
-