Package de.uka.ipd.sdq.tcfmoop.config
Class InsignificantSetQualityImprovementConfig
- java.lang.Object
-
- de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
-
- de.uka.ipd.sdq.tcfmoop.config.InsignificantSetQualityImprovementConfig
-
- All Implemented Interfaces:
IConfiguration
public class InsignificantSetQualityImprovementConfig extends AbstractConfiguration
Configuration class for InsignificantSetQualityImprovement termination criterion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
InsignificantSetQualityImprovementConfig.UnresolvedValueDifference
class
InsignificantSetQualityImprovementConfig.ValueDifference
-
Constructor Summary
Constructors Constructor Description InsignificantSetQualityImprovementConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getComparisionGenerations()
Get the number for the x.List<InsignificantSetQualityImprovementConfig.UnresolvedValueDifference>
getUnresolvedValueDifferences()
Returns a List of UnresolvedValueDifferences (Objective String, Average improvement, MaxMin improvement).List<InsignificantSetQualityImprovementConfig.ValueDifference>
getValueDifferences()
Return a List of ValueObjects witch contain the allowed average and maxMin improvement for a specific Objective.void
setComparisionGenerations(int pastIterationNumber)
Sets the number for the x.void
setUnresolvedValueDifferences(List<InsignificantSetQualityImprovementConfig.UnresolvedValueDifference> unresolvedValueDifferences)
Configures the average and the MaxMin improvement values for the objectives without resolving it.void
setValueDifferences(List<InsignificantSetQualityImprovementConfig.ValueDifference> valueDifferences)
Set the list ValueObjects(objective name, allowed averages, wallower maxMin).boolean
validateConfiguration()
Checks the configuration object for correctness.-
Methods inherited from class de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
getTerminationCriterionName
-
-
-
-
Method Detail
-
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
-
setValueDifferences
public void setValueDifferences(List<InsignificantSetQualityImprovementConfig.ValueDifference> valueDifferences) throws InvalidConfigException
Set the list ValueObjects(objective name, allowed averages, wallower maxMin).- Parameters:
valueDifferences
- (objective name, allowed averages, wallower maxMin)- Throws:
InvalidConfigException
- if the supplied parameter do not conform to the required conditions.
-
getValueDifferences
public List<InsignificantSetQualityImprovementConfig.ValueDifference> getValueDifferences()
Return a List of ValueObjects witch contain the allowed average and maxMin improvement for a specific Objective.- Returns:
- List of ValueObjects witch contains the allowed average and maxMin improvement for a specific Objective
-
setUnresolvedValueDifferences
public void setUnresolvedValueDifferences(List<InsignificantSetQualityImprovementConfig.UnresolvedValueDifference> unresolvedValueDifferences)
Configures the average and the MaxMin improvement values for the objectives without resolving it. The String keys of the objectives are used instead. The List can later be read for fully resolving the objectives. This must be done, before the configuration object is supplied to the TerminationCriteriaManager. The TerminationCriterion cannot work with unresolved Objectives and therefore the validation of the Configuration object is not influenced by this parameter at all.- Parameters:
unresolvedValueDifferences
-
-
getUnresolvedValueDifferences
public List<InsignificantSetQualityImprovementConfig.UnresolvedValueDifference> getUnresolvedValueDifferences()
Returns a List of UnresolvedValueDifferences (Objective String, Average improvement, MaxMin improvement). The String is the key that can be used to resolve the object. The List must be previously set or it will be empty.- Returns:
-
setComparisionGenerations
public void setComparisionGenerations(int pastIterationNumber) throws InvalidConfigException
Sets the number for the x. past iteration to compare the current set with.- Parameters:
pastIterationNumber
- the number for the x. past set to compare the current one with.- Throws:
InvalidConfigException
- if the supplied parameter do not conform to the required conditions.
-
getComparisionGenerations
public int getComparisionGenerations()
Get the number for the x. past set to compare the current one with.- Returns:
- the number for the x. past set to compare the current one with.
-
-