Changeset 16935 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ProblemDataConstraint.cs
- Timestamp:
- 05/09/19 12:52:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ProblemDataConstraint.cs
r16928 r16935 38 38 "\u2202²'y'/\u2202'x'² in ]-1 .. inf.["; 39 39 40 [Storable(Name = "Input")] 40 41 private string input; 41 [Storable]42 42 public string Input { 43 43 get => input; … … 49 49 } 50 50 51 [Storable(Name = "Constraints")] 51 52 private IEnumerable<IntervalConstraint> constraints; 52 [Storable]53 53 public IEnumerable<IntervalConstraint> Constraints { 54 get => constraints ;54 get => constraints.ToList(); 55 55 set { 56 56 if (constraints == value) return; 57 constraints = value ;57 constraints = value.ToList(); 58 58 OnChanged(); 59 59 } … … 68 68 : base(original, cloner) { 69 69 this.Input = original.Input; 70 this.constraints = original.Constraints.Select(cloner.Clone) ;70 this.constraints = original.Constraints.Select(cloner.Clone).ToList(); 71 71 this.ProblemData = cloner.Clone(original.ProblemData); 72 72 } … … 84 84 public ProblemDataConstraint(IRegressionProblemData problemData) : base() { 85 85 this.Input = exampleInput; 86 this.constraints = new List<IntervalConstraint>();86 this.constraints = new CheckedItemList<IntervalConstraint>(); 87 87 this.ProblemData = problemData; 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.