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

    r5143 r5177  
    4343    }
    4444
    45     public override IOperation Apply() {
    46       IScope scope = ExecutionContext.Scope;
     45    public override IOperation Apply(IExecutionContext context) {
     46      IScope scope = context.Scope;
    4747      int index = RandomParameter.ActualValue.Next(scope.SubScopes.Count);
    4848      IScope child = scope.SubScopes[index];
     
    5151        scope.Variables.Add((IVariable)var.Clone());
    5252
    53       return base.Apply();
     53      return base.Apply(context);
    5454    }
    5555
Note: See TracChangeset for help on using the changeset viewer.