Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/27/11 23:56:35 (13 years ago)
Author:
cneumuel
Message:

#1215

  • fixed issue with multiple problems (by introducing valuesReadOnly to IOptimizable)
  • fixed error message when removing last problem instance
  • made quality measure name configurable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs

    r6486 r6489  
    146146    }
    147147
     148    [Storable]
     149    protected bool valuesReadOnly = false;
     150    public virtual bool ValuesReadOnly {
     151      get { return valuesReadOnly; }
     152      set {
     153        if (value != this.valuesReadOnly) {
     154          this.valuesReadOnly = value;
     155          foreach (var vc in this.valueConfigurations) {
     156            vc.ValuesReadOnly = value;
     157          }
     158        }
     159      }
     160    }
    148161
    149162    #region Constructors and Cloning
     
    220233      this.discoverValidValues = original.discoverValidValues;
    221234      this.AutoPopulateValueConfigurations = original.AutoPopulateValueConfigurations;
     235      this.valuesReadOnly = original.valuesReadOnly;
    222236    }
    223237
     
    485499
    486500    public void Parameterize(IValueParameter parameter) {
     501      if (!Optimize && ValuesReadOnly)
     502        return;
     503
    487504      if (Optimize) {
    488505        if (this.ActualValue.Value is IParameterizedItem) {
Note: See TracChangeset for help on using the changeset viewer.