- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Operators/3.3/SubScopesProcessor.cs
r4722 r5177 67 67 } 68 68 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)); 72 72 if (scopes.Count != Operators.Count) 73 73 throw new ArgumentException("The number of operators doesn't match the number of sub-scopes at depth " + Depth.Value); … … 75 75 inner.Parallel = Parallel == null ? false : Parallel.Value; 76 76 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])); 78 78 } 79 79 next.Insert(0, inner);
Note: See TracChangeset
for help on using the changeset viewer.