Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 11:14:18 (11 years ago)
Author:
mkommend
Message:

#2119: Added interface for instrumented operators and adapted problem and encoding specific operators to provide instrumentation capabilities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.OneMax/3.3/Evaluators/OneMaxEvaluator.cs

    r9456 r10291  
    3434  [Item("OneMaxEvaluator", "Evaluates solutions for the OneMax problem.")]
    3535  [StorableClass]
    36   public class OneMaxEvaluator : SingleSuccessorOperator, IOneMaxEvaluator {
     36  public class OneMaxEvaluator : InstrumentedOperator, IOneMaxEvaluator {
    3737    public ILookupParameter<DoubleValue> QualityParameter {
    3838      get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; }
     
    5656    }
    5757
    58     public sealed override IOperation Apply() {
     58    public sealed override IOperation InstrumentedApply() {
    5959      BinaryVector v = BinaryVectorParameter.ActualValue;
    6060
     
    6767      QualityParameter.ActualValue = new DoubleValue(quality);
    6868
    69       return base.Apply();
     69      return base.InstrumentedApply();
    7070    }
    7171  }
Note: See TracChangeset for help on using the changeset viewer.