Changeset 16935 for branches/2971_named_intervals
- Timestamp:
- 05/09/19 12:52:44 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalConstraint.cs
r16932 r16935 28 28 [Item("Interval Constraint", "Constraint on intervals.")] 29 29 public sealed class IntervalConstraint : Item { 30 [Storable(Name = "Expression")] 30 31 private string expression; 31 [Storable]32 32 public string Expression { 33 33 get => expression; … … 45 45 } 46 46 47 [Storable(Name = "Variable")] 47 48 private string variable; 48 [Storable]49 49 public string Variable { 50 50 get => variable; … … 58 58 } 59 59 60 [Storable(Name = "Target")] 60 61 private string target; 61 [Storable]62 62 public string Target { 63 63 get => target; … … 75 75 } 76 76 77 [Storable(Name = "NumberOfDerivation")] 77 78 private int numberOfDerivation; 78 [Storable]79 79 public int NumberOfDerivation { 80 80 get => numberOfDerivation; … … 90 90 } 91 91 92 [Storable(Name = "Interval")] 92 93 private Interval interval; 93 [Storable]94 94 public Interval Interval { 95 95 get => interval; … … 102 102 } 103 103 } 104 105 [Storable(Name = "InclusiveLowerBound")] 104 106 private bool inclusiveLowerBound; 105 [Storable]106 107 public bool InclusiveLowerBound { 107 108 get => inclusiveLowerBound; … … 115 116 } 116 117 118 [Storable(Name = "InclusiveUpperBound")] 117 119 private bool inclusiveUpperBound; 118 [Storable]119 120 public bool InclusiveUpperBound { 120 121 get => inclusiveUpperBound; … … 128 129 } 129 130 131 [Storable(Name = "Enabled")] 130 132 private bool enabled; 131 [Storable]132 133 public bool Enabled { 133 134 get => enabled; -
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.