Ignore:
Timestamp:
07/19/12 11:04:48 (7 years ago)
Author:
jkarder
Message:

#1331: made similarity calculators storable and cloneable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Optimization.Operators/3.3/SimilarityCalculator.cs

    r8299 r8303  
    4343    [StorableConstructor]
    4444    protected SimilarityCalculator(bool deserializing) : base(deserializing) { }
    45     protected SimilarityCalculator(SimilarityCalculator original, Cloner cloner) : base(original, cloner) { }
     45    protected SimilarityCalculator(SimilarityCalculator original, Cloner cloner)
     46      : base(original, cloner) {
     47      if (original.Target != null)
     48        this.target = (string)original.Target.Clone();
     49    }
    4650    protected SimilarityCalculator() : base() { }
    4751
     
    5559
    5660    protected abstract double CalculateSimilarity(IScope left, IScope right);
    57 
    58     public override IDeepCloneable Clone(Cloner cloner) { return null; }
    5961  }
    6062}
Note: See TracChangeset for help on using the changeset viewer.