Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/26/10 03:51:30 (14 years ago)
Author:
swagner
Message:

Removed property ExecutionContext in Operator (#1333)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ParallelEngine/HeuristicLab.Selection/3.3/Replacer.cs

    r4722 r5177  
    7575    }
    7676
    77     public override IOperation Apply() {
    78       if (ExecutionContext.Scope.SubScopes.Count != 2) throw new InvalidOperationException(Name + ": There must be two sub-scopes which should be replaced/merged.");
    79       int remaining = ExecutionContext.Scope.SubScopes[0].SubScopes.Count;
    80       int selected = ExecutionContext.Scope.SubScopes[1].SubScopes.Count;
     77    public override IOperation Apply(IExecutionContext context) {
     78      if (context.Scope.SubScopes.Count != 2) throw new InvalidOperationException(Name + ": There must be two sub-scopes which should be replaced/merged.");
     79      int remaining = context.Scope.SubScopes[0].SubScopes.Count;
     80      int selected = context.Scope.SubScopes[1].SubScopes.Count;
    8181
    8282      ISelector replacedSelector = ReplacedSelectorParameter.ActualValue;
     
    9292      }
    9393
    94       return base.Apply();
     94      return base.Apply(context);
    9595    }
    9696  }
Note: See TracChangeset for help on using the changeset viewer.