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/OffspringSelector.cs

    r4722 r5177  
    8080    }
    8181
    82     public override IOperation Apply() {
     82    public override IOperation Apply(IExecutionContext context) {
    8383      double maxSelPress = MaximumSelectionPressureParameter.ActualValue.Value;
    8484      double successRatio = SuccessRatioParameter.ActualValue.Value;
    85       IScope scope = ExecutionContext.Scope;
     85      IScope scope = context.Scope;
    8686      IScope parents = scope.SubScopes[0];
    8787      IScope offspring = scope.SubScopes[1];
     
    162162        IOperator moreOffspring = OffspringCreatorParameter.ActualValue as IOperator;
    163163        if (moreOffspring == null) throw new InvalidOperationException(Name + ": More offspring are required, but no operator specified for creating them.");
    164         return ExecutionContext.CreateOperation(moreOffspring);
     164        return context.CreateOperation(moreOffspring);
    165165      } else {
    166166        // enough children generated
     
    170170        scope.Variables.Remove(OffspringPopulationParameter.TranslatedName);
    171171        scope.Variables.Remove(OffspringPopulationWinnersParameter.TranslatedName);
    172         return base.Apply();
     172        return base.Apply(context);
    173173      }
    174174    }
Note: See TracChangeset for help on using the changeset viewer.