Changeset 8524 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations
- Timestamp:
- 08/27/12 10:39:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations/ValueConfiguration.cs
r8517 r8524 28 28 29 29 namespace HeuristicLab.Encodings.ParameterConfigurationEncoding { 30 // TODO: ItemName/Descr, storability30 [Item("ValueConfiguration", "Represents a value configuration.")] 31 31 [StorableClass] 32 32 public abstract class ValueConfiguration : NamedItem, IValueConfiguration { … … 59 59 if (value == true && !this.IsOptimizable) 60 60 throw new NotSupportedException("This value is not optimizable."); 61 62 61 optimize = value; 63 62 OnOptimizeChanged(); … … 106 105 107 106 #region Constructors and Cloning 108 public ValueConfiguration(IItem value, Type valueDataType) {109 this.ActualValue = new ConstrainedValue(value, valueDataType, new ItemSet<IItem> { value }, false);110 this.IsOptimizable = true;111 }112 113 public ValueConfiguration() { }114 107 [StorableConstructor] 115 protected ValueConfiguration(bool deserializing) { }108 protected ValueConfiguration(bool deserializing) : base(deserializing) { } 116 109 protected ValueConfiguration(ValueConfiguration original, Cloner cloner) 117 110 : base(original, cloner) { … … 122 115 this.valuesReadOnly = original.valuesReadOnly; 123 116 RegisterActualValueEvents(); 117 } 118 protected ValueConfiguration() : base() { } 119 protected ValueConfiguration(IItem value, Type valueDataType) { 120 this.ActualValue = new ConstrainedValue(value, valueDataType, new ItemSet<IItem> { value }, false); 121 this.IsOptimizable = true; 124 122 } 125 123 #endregion
Note: See TracChangeset
for help on using the changeset viewer.