Changeset 5207 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints/ConstrainedValue.cs
- Timestamp:
- 01/04/11 02:18:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints/ConstrainedValue.cs
r5112 r5207 33 33 34 34 [Storable] 35 protected IItemSet<IItem> validValues;36 public IItemSet<IItem> ValidValues {37 get { return valid Values; }35 protected Type[] validTypes; 36 public Type[] ValidTypes { 37 get { return validTypes; } 38 38 protected set { 39 if (this.valid Values != value) {40 this.valid Values = value;39 if (this.validTypes != value) { 40 this.validTypes = value; 41 41 } 42 42 } … … 65 65 [StorableConstructor] 66 66 protected ConstrainedValue(bool deserializing) : base(deserializing) { } 67 public ConstrainedValue(IItem value, Type valueDataType, IItemSet<IItem> validValues, bool isNullable) {67 public ConstrainedValue(IItem value, Type valueDataType, Type[] validTypes, bool isNullable) { 68 68 this.Value = value; 69 69 this.ValueDataType = valueDataType; 70 this.Valid Values = validValues;70 this.ValidTypes = validTypes; 71 71 this.isNullable = isNullable; 72 72 } … … 74 74 this.valueDataType = original.valueDataType; 75 75 this.Value = cloner.Clone(original.value); 76 this.ValidValues = cloner.Clone(original.ValidValues);76 if(original.ValidTypes != null) this.ValidTypes = original.ValidTypes.ToArray(); 77 77 this.isNullable = original.isNullable; 78 78 }
Note: See TracChangeset
for help on using the changeset viewer.