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