Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/14 15:17:06 (11 years ago)
Author:
jkarder
Message:

#2119: Adapted MultiIntValueCrossover to subclass InstrumentedOperator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Crossovers/IntValue/MultiIntValueCrossover.cs

    r6017 r10309  
    11using System;
    2 using System.Collections.Generic;
    32using System.Linq;
    4 using System.Text;
     3using HeuristicLab.Common;
     4using HeuristicLab.Core;
     5using HeuristicLab.Data;
    56using HeuristicLab.Operators;
    67using HeuristicLab.Optimization;
     8using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    79using HeuristicLab.PluginInfrastructure;
    8 using HeuristicLab.Data;
    9 using HeuristicLab.Core;
    10 using HeuristicLab.Common;
    11 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    1210
    1311namespace HeuristicLab.Problems.MetaOptimization.Operators.Crossovers {
     
    3028      }
    3129    }
    32     protected MultiIntValueCrossover(MultiIntValueCrossover original, Cloner cloner) : base(original, cloner) {
     30    protected MultiIntValueCrossover(MultiIntValueCrossover original, Cloner cloner)
     31      : base(original, cloner) {
    3332    }
    3433    public override IDeepCloneable Clone(Cloner cloner) {
     
    3635    }
    3736
    38     public override IOperation Apply() {
     37    public override IOperation InstrumentedApply() {
    3938      if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one permutation crossover to choose from.");
    40       return base.Apply();
     39      return base.InstrumentedApply();
    4140    }
    4241
Note: See TracChangeset for help on using the changeset viewer.