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.ArtificialAnt/3.4/Evaluator.cs

    r9456 r10291  
    3232  [Item("ArtificialAntEvaluator", "Evaluates an artificial ant solution.")]
    3333  [StorableClass]
    34   public class Evaluator : SingleSuccessorOperator, ISingleObjectiveEvaluator {
     34  public class Evaluator : InstrumentedOperator, ISingleObjectiveEvaluator {
    3535
    3636    public ILookupParameter<DoubleValue> QualityParameter {
     
    6060    }
    6161
    62     public sealed override IOperation Apply() {
     62    public sealed override IOperation InstrumentedApply() {
    6363      SymbolicExpressionTree expression = SymbolicExpressionTreeParameter.ActualValue;
    6464      BoolMatrix world = WorldParameter.ActualValue;
     
    7272
    7373      QualityParameter.ActualValue = new DoubleValue(interpreter.FoodEaten);
    74       return null;
     74      return base.InstrumentedApply();
    7575    }
    7676  }
Note: See TracChangeset for help on using the changeset viewer.