Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/23/15 18:15:36 (10 years ago)
Author:
mkommend
Message:

#2326: Fixed namespaces, cloning and serialization in diversity analyzer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs

    r12055 r12064  
    3131  [StorableClass]
    3232  public class SymbolicExpressionTreePhenotypicSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator {
     33    [Storable]
    3334    public IDataAnalysisProblemData ProblemData { get; set; }
     35    [Storable]
    3436    public ISymbolicDataAnalysisExpressionTreeInterpreter Interpreter { get; set; }
    3537
     
    3941    public SymbolicExpressionTreePhenotypicSimilarityCalculator(SymbolicExpressionTreePhenotypicSimilarityCalculator original, Cloner cloner)
    4042      : base(original, cloner) {
    41       this.ProblemData = original.ProblemData;
    42       this.Interpreter = original.Interpreter;
     43      this.ProblemData = cloner.Clone(original.ProblemData);
     44      this.Interpreter = cloner.Clone(original.Interpreter);
    4345    }
    4446
     
    4749    }
    4850
    49     public SymbolicExpressionTreePhenotypicSimilarityCalculator() { }
     51    public SymbolicExpressionTreePhenotypicSimilarityCalculator() {
     52    }
    5053
    5154    public double CalculateSimilarity(ISymbolicExpressionTree t1, ISymbolicExpressionTree t2) {
Note: See TracChangeset for help on using the changeset viewer.