Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/19/12 15:56:24 (10 years ago)
Author:
ascheibe
Message:

#1886 fixed cloning and made helper classes items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/ScatterPlotHelper.cs

    r8498 r8501  
    2222using System.Collections.Generic;
    2323using HeuristicLab.Common;
     24using HeuristicLab.Core;
    2425using HeuristicLab.Optimization;
     26using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2527
    2628namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers {
    27   public class ScatterPlotHelper {
     29  [Item("ScatterPlotHelper", "Helper class for creating scatter plots.")]
     30  [StorableClass]
     31  public class ScatterPlotHelper : Item {
    2832
    2933    private ResultCollection resultsCol;
     
    3640      get { return plot; }
    3741      private set { plot = value; }
     42    }
     43
     44    [StorableConstructor]
     45    private ScatterPlotHelper(bool deserializing) : base(deserializing) { }
     46    private ScatterPlotHelper(ScatterPlotHelper original, Cloner cloner)
     47      : base(original, cloner) {
     48      resultsCol = original.resultsCol;
     49      chartName = original.chartName;
     50      xAxisTitle = original.xAxisTitle;
     51      yAxisTitle = original.yAxisTitle;
     52      plot = (ScatterPlot)original.plot.Clone(cloner);
     53    }
     54    public ScatterPlotHelper() : base() { }
     55
     56    public override IDeepCloneable Clone(Cloner cloner) {
     57      return new ScatterPlotHelper(this, cloner);
    3858    }
    3959
Note: See TracChangeset for help on using the changeset viewer.