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

    r4722 r5177  
    6969    }
    7070
    71     public override IOperation Apply() {
     71    public override IOperation Apply(IExecutionContext context) {
    7272      int count = NumberOfSolutionsParameter.ActualValue.Value;
    7373      IOperator creator = SolutionCreatorParameter.ActualValue;
     
    8080      OperationCollection next = new OperationCollection();
    8181      for (int i = 0; i < count; i++) {
    82         if (creator != null) next.Add(ExecutionContext.CreateOperation(creator, CurrentScope.SubScopes[current + i]));
    83         if (evaluator != null) next.Add(ExecutionContext.CreateOperation(evaluator, CurrentScope.SubScopes[current + i]));
     82        if (creator != null) next.Add(context.CreateOperation(creator, CurrentScope.SubScopes[current + i]));
     83        if (evaluator != null) next.Add(context.CreateOperation(evaluator, CurrentScope.SubScopes[current + i]));
    8484      }
    85       next.Add(base.Apply());
     85      next.Add(base.Apply(context));
    8686      return next;
    8787    }
Note: See TracChangeset for help on using the changeset viewer.