- Timestamp:
- 04/12/19 10:32: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/Parser/IntervalConstraint.cs
r16776 r16777 49 49 public int NumberOfDerivation { get; set; } 50 50 51 public IntervalConstraint() {} 51 private bool isChecked; 52 public bool IsChecked { 53 get => isChecked; 54 set { 55 if (value != isChecked) { 56 isChecked = value; 57 OnChanged(EventArgs.Empty); 58 } 59 } 60 } 61 62 public IntervalConstraint() { 63 name = "Empty"; 64 expression = "Empty"; 65 Interval = new Interval(0, 0); 66 inclusiveLowerBound = true; 67 inclusiveLowerBound = true; 68 IsDerivation = false; 69 isChecked = false; 70 } 52 71 53 72 public IntervalConstraint(string name) { 54 73 base.name = name; 74 IsChecked = true; 55 75 } 56 76 57 77 public IntervalConstraint(string expression, string definition, Interval interval, bool inclusiveLowerBound, 58 bool inclusiveUpperBound, bool isDerivation, string variable, int numberOfDerivation ) {78 bool inclusiveUpperBound, bool isDerivation, string variable, int numberOfDerivation, bool isChecked) { 59 79 base.name = expression; 60 80 Expression = expression; … … 66 86 Variable = variable; 67 87 NumberOfDerivation = numberOfDerivation; 88 IsChecked = isChecked; 68 89 } 69 90 … … 82 103 this.Variable = original.Variable; 83 104 this.NumberOfDerivation = original.NumberOfDerivation; 105 this.isChecked = original.isChecked; 84 106 } 85 107 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ParsedConstraint.cs
r16776 r16777 42 42 this.input = original.Input ?? string.Empty; 43 43 this.constraints = original.Constraints ?? new CheckedItemList<IntervalConstraint>(); 44 44 this.problemData = original.problemData; 45 45 } 46 46
Note: See TracChangeset
for help on using the changeset viewer.