Changeset 4722 for trunk/sources/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Symbols/Constant.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Symbols/Constant.cs
r4089 r4722 78 78 } 79 79 #endregion 80 81 [StorableConstructor] 82 private Constant(bool deserializing) : base(deserializing) { } 83 private Constant(Constant original, Cloner cloner) 84 : base(original, cloner) { 85 minValue = original.minValue; 86 maxValue = original.maxValue; 87 manipulatorNu = original.manipulatorNu; 88 manipulatorSigma = original.manipulatorSigma; 89 } 90 public override IDeepCloneable Clone(Cloner cloner) { 91 return new Constant(this, cloner); 92 } 80 93 public Constant() 81 94 : base("Constant", "Represents a constant value.") { … … 89 102 return new ConstantTreeNode(this); 90 103 } 91 92 public override IDeepCloneable Clone(Cloner cloner) {93 Constant clone = (Constant)base.Clone(cloner);94 clone.minValue = minValue;95 clone.maxValue = maxValue;96 clone.manipulatorNu = manipulatorNu;97 clone.manipulatorSigma = manipulatorSigma;98 return clone;99 }100 104 } 101 105 }
Note: See TracChangeset
for help on using the changeset viewer.