Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/07/16 14:06:02 (7 years ago)
Author:
bburlacu
Message:

#2672: Updated cloning mechanism to conform to the HL standard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineLinearScalingParameterCalculator.cs

    r14294 r14376  
    2525
    2626namespace HeuristicLab.Problems.DataAnalysis {
    27   public class OnlineLinearScalingParameterCalculator : IDeepCloneable {
     27  public class OnlineLinearScalingParameterCalculator : DeepCloneable {
    2828
    2929    /// <summary>
     
    126126    }
    127127
    128     // IDeepCloneable interface members
    129     public object Clone() {
    130       var cloner = new Cloner();
     128    public override IDeepCloneable Clone(Cloner cloner) {
    131129      return new OnlineLinearScalingParameterCalculator(this, cloner);
    132     }
    133 
    134     public IDeepCloneable Clone(Cloner cloner) {
    135       var clone = cloner.GetClone(this);
    136       if (clone == null) {
    137         clone = new OnlineLinearScalingParameterCalculator(this, cloner);
    138         cloner.RegisterClonedObject(this, clone);
    139       }
    140       return clone;
    141130    }
    142131  }
Note: See TracChangeset for help on using the changeset viewer.