Class InsignificantSetQualityImprovementConfig

  • All Implemented Interfaces:
    IConfiguration

    public class InsignificantSetQualityImprovementConfig
    extends AbstractConfiguration
    Configuration class for InsignificantSetQualityImprovement termination criterion.
    • Constructor Detail

      • InsignificantSetQualityImprovementConfig

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