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/MultiObjective/CrowdedComparisonSorter.cs

    r5143 r5177  
    5656    }
    5757
    58     public override IOperation Apply() {
     58    public override IOperation Apply(IExecutionContext context) {
    5959      ItemArray<IntValue> ranks = RankParameter.ActualValue;
    6060      ItemArray<DoubleValue> distances = CrowdingDistanceParameter.ActualValue;
     
    6262      int[] indices = Enumerable.Range(0, size).ToArray();
    6363
    64       IScope[] scopes = ExecutionContext.Scope.SubScopes.ToArray();
     64      IScope[] scopes = context.Scope.SubScopes.ToArray();
    6565      Array.Sort(indices, scopes, new CustomComparer(ranks, distances));
    66       ExecutionContext.Scope.SubScopes.Clear();
    67       ExecutionContext.Scope.SubScopes.AddRange(scopes);
    68       return base.Apply();
     66      context.Scope.SubScopes.Clear();
     67      context.Scope.SubScopes.AddRange(scopes);
     68      return base.Apply(context);
    6969    }
    7070
Note: See TracChangeset for help on using the changeset viewer.