Changeset 9344


Ignore:
Timestamp:
04/08/13 15:38:10 (6 years ago)
Author:
jkarder
Message:

#1899:

  • added the Storable attribute to the similarity calculator
  • fixed cloning ctor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/PopulationDiversityAnalysis/SingleObjectivePopulationDiversityAnalyzer.cs

    r8478 r9344  
    3838  public class SingleObjectivePopulationDiversityAnalyzer : SingleSuccessorOperator, IAnalyzer, ISimilarityBasedOperator {
    3939    #region ISimilarityBasedOperator Members
     40    [Storable]
    4041    public ISolutionSimilarityCalculator SimilarityCalculator { get; set; }
    4142    #endregion
     
    6970    [StorableConstructor]
    7071    protected SingleObjectivePopulationDiversityAnalyzer(bool deserializing) : base(deserializing) { }
    71     protected SingleObjectivePopulationDiversityAnalyzer(SingleObjectivePopulationDiversityAnalyzer original, Cloner cloner) : base(original, cloner) { }
     72    protected SingleObjectivePopulationDiversityAnalyzer(SingleObjectivePopulationDiversityAnalyzer original, Cloner cloner)
     73      : base(original, cloner) {
     74      SimilarityCalculator = cloner.Clone(original.SimilarityCalculator);
     75    }
    7276    public SingleObjectivePopulationDiversityAnalyzer()
    7377      : base() {
Note: See TracChangeset for help on using the changeset viewer.