Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15983 for trunk


Ignore:
Timestamp:
07/04/18 23:36:23 (6 years ago)
Author:
abeham
Message:

#2928: split AfterDeserialization and RegisterEventhandlers into separate methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs

    r15583 r15983  
    166166      : base(original, cloner) {
    167167      paretoFrontAnalyzer = (RankBasedParetoFrontAnalyzer)cloner.Clone(original.paretoFrontAnalyzer);
    168       AfterDeserialization();
     168      RegisterEventhandlers();
    169169    }
    170170    public NSGA2() {
     
    240240      UpdateAnalyzers();
    241241
    242       AfterDeserialization();
     242      RegisterEventhandlers();
    243243    }
    244244
     
    338338      #endregion
    339339
     340      RegisterEventhandlers();
     341    }
     342
     343    private void RegisterEventhandlers() {
    340344      PopulationSizeParameter.ValueChanged += new EventHandler(PopulationSizeParameter_ValueChanged);
    341345      PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged);
     
    346350      }
    347351    }
     352
    348353    private void ParameterizeSolutionsCreator() {
    349354      SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;
Note: See TracChangeset for help on using the changeset viewer.