Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 13:13:41 (10 years ago)
Author:
mkommend
Message:

#2119: Adapted all multi operators to subclass InstrumentedOperator.

Location:
trunk/sources/HeuristicLab.Optimization.Operators/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Operators/3.3/ShakingOperator.cs

    r9456 r10295  
    5656    }
    5757
    58     public override IOperation Apply() {
     58    public override IOperation InstrumentedApply() {
    5959      if (NeighborhoodCountParameter.ActualValue == null)
    6060        NeighborhoodCountParameter.ActualValue = new IntValue(Operators.CheckedItems.Count());
     
    6464      var shaker = base.Operators.CheckedItems.SingleOrDefault(x => x.Index == index);
    6565
    66       OperationCollection next = new OperationCollection(base.Apply());
     66      OperationCollection next = new OperationCollection(base.InstrumentedApply());
    6767      if (shaker.Value != null)
    6868        next.Insert(0, ExecutionContext.CreateChildOperation(shaker.Value));
  • trunk/sources/HeuristicLab.Optimization.Operators/3.3/UserDefinedOperator.cs

    r9456 r10295  
    3535    public UserDefinedOperator() : base() { }
    3636
    37     public override IOperation Apply() {
     37    public override IOperation InstrumentedApply() {
    3838      OperationCollection result = new OperationCollection();
    3939      foreach (IOperator op in Operators.CheckedItems.OrderBy(x => x.Index).Select(x => x.Value)) {
    4040        result.Add(ExecutionContext.CreateOperation(op));
    4141      }
    42       result.Add(base.Apply());
     42      result.Add(base.InstrumentedApply());
    4343      return result;
    4444    }
Note: See TracChangeset for help on using the changeset viewer.