Changeset 5275 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
- Timestamp:
- 01/11/11 15:03:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
r4068 r5275 54 54 } 55 55 [Storable] 56 private double manipulator Nu;57 public double Manipulator Nu {58 get { return manipulator Nu; }56 private double manipulatorMu; 57 public double ManipulatorMu { 58 get { return manipulatorMu; } 59 59 set { 60 if (value != manipulator Nu) {61 manipulator Nu = value;60 if (value != manipulatorMu) { 61 manipulatorMu = value; 62 62 OnChanged(EventArgs.Empty); 63 63 } … … 77 77 } 78 78 #endregion 79 [StorableConstructor] 80 private Constant(bool deserializing) : base(deserializing) { } 81 private Constant(Constant original, Cloner cloner) 82 : base(original, cloner) { 83 minValue = original.minValue; 84 maxValue = original.maxValue; 85 manipulatorMu = original.manipulatorMu; 86 manipulatorSigma = original.manipulatorSigma; 87 } 79 88 public Constant() 80 89 : base("Constant", "Represents a constant value.") { 81 manipulator Nu = 0.0;90 manipulatorMu = 0.0; 82 91 manipulatorSigma = 1.0; 83 92 minValue = -20.0; … … 90 99 91 100 public override IDeepCloneable Clone(Cloner cloner) { 92 Constant clone = (Constant)base.Clone(cloner); 93 clone.minValue = minValue; 94 clone.maxValue = maxValue; 95 clone.manipulatorNu = manipulatorNu; 96 clone.manipulatorSigma = manipulatorSigma; 97 return clone; 101 return new Constant(this, cloner); 98 102 } 99 103 }
Note: See TracChangeset
for help on using the changeset viewer.