Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8299 for branches


Ignore:
Timestamp:
07/18/12 11:10:08 (12 years ago)
Author:
jkarder
Message:

#1331: made SimilarityCalculator storable

Location:
branches/ScatterSearch (trunk integration)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs

    r8086 r8299  
    320320        Problem.Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged);
    321321      }
     322      ParameterizeMainLoop();
    322323    }
    323324    private void UpdateAnalyzers() {
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Optimization.Operators/3.3/SimilarityCalculator.cs

    r8086 r8299  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
     25using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2526
    2627namespace HeuristicLab.Optimization.Operators {
     
    2930  /// </summary>
    3031  [Item("SimilarityCalculator", "A base class for items that perform similarity calculation between two solutions.")]
     32  [StorableClass]
    3133  public abstract class SimilarityCalculator : Item, ISimilarityCalculator {
    3234    #region Properties
    33     public string Target { get; set; }
     35    [Storable]
     36    private string target;
     37    public string Target {
     38      get { return target; }
     39      set { target = value; }
     40    }
    3441    #endregion
    3542
     43    [StorableConstructor]
    3644    protected SimilarityCalculator(bool deserializing) : base(deserializing) { }
    3745    protected SimilarityCalculator(SimilarityCalculator original, Cloner cloner) : base(original, cloner) { }
     
    4856    protected abstract double CalculateSimilarity(IScope left, IScope right);
    4957
    50     public override Common.IDeepCloneable Clone(Common.Cloner cloner) { return null; }
     58    public override IDeepCloneable Clone(Cloner cloner) { return null; }
    5159  }
    5260}
Note: See TracChangeset for help on using the changeset viewer.