Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 11:14:18 (10 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.LawnMower/3.3/Evaluator.cs

    r9456 r10291  
    3232  [StorableClass]
    3333  [Item("Lawn Mower Evaluator", "Evaluator for the lawn mower demo GP problem.")]
    34   public class Evaluator : SingleSuccessorOperator, ISingleObjectiveEvaluator {
     34  public class Evaluator : InstrumentedOperator, ISingleObjectiveEvaluator {
    3535
    3636    private const string QualityParameterName = "Quality";
     
    7272      return new Evaluator(this, cloner);
    7373    }
    74     public override IOperation Apply() {
     74    public override IOperation InstrumentedApply() {
    7575      int length = LawnLengthParameter.ActualValue.Value;
    7676      int width = LawnWidthParameter.ActualValue.Value;
     
    8888
    8989      QualityParameter.ActualValue = new DoubleValue(numberOfMowedCells);
    90       return base.Apply();
     90      return base.InstrumentedApply();
    9191    }
    9292  }
Note: See TracChangeset for help on using the changeset viewer.