- Timestamp:
- 05/17/10 15:55:45 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
r3512 r3824 38 38 public double MinValue { 39 39 get { return minValue; } 40 set { minValue = value; } 40 set { 41 if (value != minValue) { 42 minValue = value; 43 OnChanged(EventArgs.Empty); 44 } 45 } 41 46 } 42 47 [Storable] … … 44 49 public double MaxValue { 45 50 get { return maxValue; } 46 set { maxValue = value; } 51 set { 52 if (value != maxValue) { 53 maxValue = value; 54 OnChanged(EventArgs.Empty); 55 } 56 } 47 57 } 48 58 [Storable] … … 50 60 public double ManipulatorNu { 51 61 get { return manipulatorNu; } 52 set { manipulatorNu = value; } 62 set { 63 if (value != manipulatorNu) { 64 manipulatorNu = value; 65 OnChanged(EventArgs.Empty); 66 } 67 } 53 68 } 54 69 [Storable] … … 58 73 set { 59 74 if (value < 0) throw new ArgumentException(); 60 manipulatorSigma = value; 75 if (value != manipulatorSigma) { 76 manipulatorSigma = value; 77 OnChanged(EventArgs.Empty); 78 } 61 79 } 62 80 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs
r3541 r3824 40 40 public double WeightNu { 41 41 get { return weightNu; } 42 set { weightNu = value; } 42 set { 43 if (value != weightNu) { 44 weightNu = value; 45 OnChanged(EventArgs.Empty); 46 } 47 } 43 48 } 44 49 [Storable] … … 48 53 set { 49 54 if (weightSigma < 0.0) throw new ArgumentException("Negative sigma is not allowed."); 50 weightSigma = value; 55 if (value != weightSigma) { 56 weightSigma = value; 57 OnChanged(EventArgs.Empty); 58 } 51 59 } 52 60 } … … 55 63 public double WeightManipulatorNu { 56 64 get { return weightManipulatorNu; } 57 set { weightManipulatorNu = value; } 65 set { 66 if (value != weightManipulatorNu) { 67 weightManipulatorNu = value; 68 OnChanged(EventArgs.Empty); 69 } 70 } 58 71 } 59 72 [Storable] … … 63 76 set { 64 77 if (weightManipulatorSigma < 0.0) throw new ArgumentException("Negative sigma is not allowed."); 65 weightManipulatorSigma = value; 78 if (value != weightManipulatorSigma) { 79 weightManipulatorSigma = value; 80 OnChanged(EventArgs.Empty); 81 } 66 82 } 67 83 } … … 74 90 variableNames.Clear(); 75 91 variableNames.AddRange(value); 92 OnChanged(EventArgs.Empty); 76 93 } 77 94 }
Note: See TracChangeset
for help on using the changeset viewer.