Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/12 23:54:58 (12 years ago)
Author:
abeham
Message:

#1722

  • fixed some problems that were identified with the first existing FxCop rules (duplicate storable hook in ExternalEvaluationProblem, multiple wrong names)
  • generally renamed AttachEventHandlers to RegisterEventHandlers to be consistent
  • fixed some backwards compatible regions to use the format from the snippet and the comment
File:
1 edited

Legend:

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

    r7259 r7351  
    157157      : base(original, cloner) {
    158158      paretoFrontAnalyzer = (RankBasedParetoFrontAnalyzer)cloner.Clone(original.paretoFrontAnalyzer);
    159       AttachEventHandlers();
     159      AfterDeserialization();
    160160    }
    161161    public NSGA2() {
     
    229229      UpdateAnalyzers();
    230230
    231       AttachEventHandlers();
     231      AfterDeserialization();
    232232    }
    233233
     
    310310    #region Helpers
    311311    [StorableHook(HookType.AfterDeserialization)]
    312     private void AttachEventHandlers() {
     312    private void AfterDeserialization() {
    313313      PopulationSizeParameter.ValueChanged += new EventHandler(PopulationSizeParameter_ValueChanged);
    314314      PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged);
Note: See TracChangeset for help on using the changeset viewer.