Changeset 8535 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/RangeConstraints/ConstrainedValue.cs
- Timestamp:
- 08/29/12 09:22:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/RangeConstraints/ConstrainedValue.cs
r8517 r8535 86 86 } 87 87 88 #region constructors and cloning 89 public ConstrainedValue() { } 88 #region Constructors and Cloning 90 89 [StorableConstructor] 91 90 protected ConstrainedValue(bool deserializing) : base(deserializing) { } 92 public ConstrainedValue(IItem value, Type valueDataType, IItemSet<IItem> validValues, bool isNullable) {93 this.Value = value;94 this.ValueDataType = valueDataType;95 this.ValidValues = validValues;96 this.isNullable = isNullable;97 }98 91 protected ConstrainedValue(ConstrainedValue original, Cloner cloner) 99 92 : base(original, cloner) { … … 103 96 this.isNullable = original.isNullable; 104 97 } 105 public override IDeepCloneable Clone(Cloner cloner) { 106 return new ConstrainedValue(this, cloner); 98 public ConstrainedValue() : base() { } 99 public ConstrainedValue(IItem value, Type valueDataType, IItemSet<IItem> validValues, bool isNullable) 100 : base() { 101 this.Value = value; 102 this.ValueDataType = valueDataType; 103 this.ValidValues = validValues; 104 this.isNullable = isNullable; 107 105 } 108 106 [StorableHook(HookType.AfterDeserialization)] 109 107 private void AfterDeserialization() { 110 108 if (this.value != null) RegisterEvents(); 109 } 110 public override IDeepCloneable Clone(Cloner cloner) { 111 return new ConstrainedValue(this, cloner); 111 112 } 112 113 #endregion
Note: See TracChangeset
for help on using the changeset viewer.