- 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.Analysis/3.3/AlleleFrequency.cs
r4623 r4722 89 89 #endregion 90 90 91 #region Storing & Cloning 92 [StorableConstructor] 93 protected AlleleFrequency(bool deserializing) : base(deserializing) { } 94 protected AlleleFrequency(AlleleFrequency original, Cloner cloner) 95 : base(original, cloner) { 96 this.id = original.id; 97 this.frequency = original.frequency; 98 this.averageImpact = original.averageImpact; 99 this.averageSolutionQuality = original.averageSolutionQuality; 100 this.containedInBestKnownSolution = original.containedInBestKnownSolution; 101 this.containedInBestSolution = original.containedInBestSolution; 102 } 103 public override IDeepCloneable Clone(Cloner cloner) { 104 return new AlleleFrequency(this, cloner); 105 } 106 #endregion 91 107 public AlleleFrequency() 92 108 : base() { … … 107 123 this.containedInBestSolution = containedInBestSolution; 108 124 } 109 [StorableConstructor]110 protected AlleleFrequency(bool deserializing) : base(deserializing) { }111 112 public override IDeepCloneable Clone(Cloner cloner) {113 AlleleFrequency clone = (AlleleFrequency)base.Clone(cloner);114 clone.id = id;115 clone.frequency = frequency;116 clone.averageImpact = averageImpact;117 clone.averageSolutionQuality = averageSolutionQuality;118 clone.containedInBestKnownSolution = containedInBestKnownSolution;119 clone.containedInBestSolution = containedInBestSolution;120 return clone;121 }122 125 123 126 public override string ToString() {
Note: See TracChangeset
for help on using the changeset viewer.