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/CrossoverPerformanceAnalyzer.cs

    r8499 r8501  
    4747    #endregion
    4848
    49 
    5049    #region Parameter properties
    5150    public ILookupParameter<ResultCollection> ResultsParameter {
     
    7877    #endregion
    7978
    80     ScatterPlotHelper plotHelper, childDiversityHelper, parentDiversityHelper;
    81     DataTableHelper performanceHelper, successHelper, equalParentsHelper;
    82     int cnt = 0;
    83     int success = 0;
    84     int lastGeneration = 0;
    85     int equalParents = 0;
    86     List<double> qualityPoints = new List<double>();
     79    private ScatterPlotHelper plotHelper, childDiversityHelper, parentDiversityHelper;
     80    private DataTableHelper performanceHelper, successHelper, equalParentsHelper;
     81    private int cnt = 0;
     82    private int success = 0;
     83    private int lastGeneration = 0;
     84    private int equalParents = 0;
     85    private List<double> qualityPoints = new List<double>();
    8786
    8887    [StorableConstructor]
    8988    private CrossoverPerformanceAnalyzer(bool deserializing) : base(deserializing) { }
    90     private CrossoverPerformanceAnalyzer(CrossoverPerformanceAnalyzer original, Cloner cloner) : base(original, cloner) { }
     89    private CrossoverPerformanceAnalyzer(CrossoverPerformanceAnalyzer original, Cloner cloner)
     90      : base(original, cloner) {
     91      cnt = original.cnt;
     92      success = original.success;
     93      lastGeneration = original.lastGeneration;
     94      equalParents = original.equalParents;
     95      qualityPoints = new List<double>(original.qualityPoints);
     96      plotHelper = (ScatterPlotHelper)original.plotHelper.Clone(cloner);
     97      childDiversityHelper = (ScatterPlotHelper)original.childDiversityHelper.Clone(cloner);
     98      parentDiversityHelper = (ScatterPlotHelper)original.parentDiversityHelper.Clone(cloner);
     99      performanceHelper = (DataTableHelper)original.performanceHelper.Clone(cloner);
     100      successHelper = (DataTableHelper)original.successHelper.Clone(cloner);
     101      equalParentsHelper = (DataTableHelper)original.equalParentsHelper.Clone(cloner);
     102    }
     103
    91104    public CrossoverPerformanceAnalyzer()
    92105      : base() {
Note: See TracChangeset for help on using the changeset viewer.