Changeset 6489 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations
- Timestamp:
- 06/27/11 23:56:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs
r6486 r6489 146 146 } 147 147 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 } 148 161 149 162 #region Constructors and Cloning … … 220 233 this.discoverValidValues = original.discoverValidValues; 221 234 this.AutoPopulateValueConfigurations = original.AutoPopulateValueConfigurations; 235 this.valuesReadOnly = original.valuesReadOnly; 222 236 } 223 237 … … 485 499 486 500 public void Parameterize(IValueParameter parameter) { 501 if (!Optimize && ValuesReadOnly) 502 return; 503 487 504 if (Optimize) { 488 505 if (this.ActualValue.Value is IParameterizedItem) {
Note: See TracChangeset
for help on using the changeset viewer.