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.Operators/3.3/SubScopesProcessor.cs

    r4722 r5177  
    6767    }
    6868
    69     public override IOperation Apply() {
    70       List<IScope> scopes = GetScopesOnLevel(ExecutionContext.Scope, Depth.Value).ToList();
    71       OperationCollection next = new OperationCollection(base.Apply());
     69    public override IOperation Apply(IExecutionContext context) {
     70      List<IScope> scopes = GetScopesOnLevel(context.Scope, Depth.Value).ToList();
     71      OperationCollection next = new OperationCollection(base.Apply(context));
    7272      if (scopes.Count != Operators.Count)
    7373        throw new ArgumentException("The number of operators doesn't match the number of sub-scopes at depth " + Depth.Value);
     
    7575      inner.Parallel = Parallel == null ? false : Parallel.Value;
    7676      for (int i = 0; i < scopes.Count(); i++) {
    77         inner.Add(ExecutionContext.CreateOperation(Operators[i], scopes[i]));
     77        inner.Add(context.CreateOperation(Operators[i], scopes[i]));
    7878      }
    7979      next.Insert(0, inner);
Note: See TracChangeset for help on using the changeset viewer.