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.
  • Constructor Details

    • InsignificantSetQualityImprovementConfig

      public InsignificantSetQualityImprovementConfig()
  • 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
    • 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

      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

      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.