Ignore:
Timestamp:
07/27/12 15:16:18 (9 years ago)
Author:
jkarder
Message:

#1331: made similarity based operators storable and cloneable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.ScatterSearch/3.3/ReferenceSetUpdateMethod.cs

    r8319 r8345  
    2727using HeuristicLab.Operators;
    2828using HeuristicLab.Optimization;
    29 using HeuristicLab.Optimization.Operators;
    3029using HeuristicLab.Parameters;
    3130using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3938  public sealed class ReferenceSetUpdateMethod : SingleSuccessorOperator, ISimilarityBasedOperator {
    4039    #region ISimilarityBasedOperator Members
     40    [Storable]
    4141    public ISolutionSimilarityCalculator SimilarityCalculator { get; set; }
    4242    #endregion
     
    6262    [StorableConstructor]
    6363    private ReferenceSetUpdateMethod(bool deserializing) : base(deserializing) { }
    64     private ReferenceSetUpdateMethod(ReferenceSetUpdateMethod original, Cloner cloner) : base(original, cloner) { }
     64    private ReferenceSetUpdateMethod(ReferenceSetUpdateMethod original, Cloner cloner)
     65      : base(original, cloner) {
     66      this.SimilarityCalculator = cloner.Clone(original.SimilarityCalculator);
     67    }
    6568    public ReferenceSetUpdateMethod()
    6669      : base() {
Note: See TracChangeset for help on using the changeset viewer.