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.Problems.VehicleRouting/3.3/Encodings/Prins/Crossovers/PrinsCrossover.cs

    r4722 r5177  
    6565    }
    6666
    67     protected abstract PrinsEncoding Crossover(IRandom random, PrinsEncoding parent1, PrinsEncoding parent2);
     67    protected abstract PrinsEncoding Crossover(IExecutionContext context, IRandom random, PrinsEncoding parent1, PrinsEncoding parent2);
    6868
    69     public override IOperation Apply() {
     69    public override IOperation Apply(IExecutionContext context) {
    7070      ItemArray<IVRPEncoding> parents = new ItemArray<IVRPEncoding>(ParentsParameter.ActualValue.Length);
    7171      for (int i = 0; i < ParentsParameter.ActualValue.Length; i++) {
     
    9595
    9696      ChildParameter.ActualValue =
    97         Crossover(RandomParameter.ActualValue, parents[0] as PrinsEncoding, parents[1] as PrinsEncoding);
     97        Crossover(context, RandomParameter.ActualValue, parents[0] as PrinsEncoding, parents[1] as PrinsEncoding);
    9898
    99       return base.Apply();
     99      return base.Apply(context);
    100100    }
    101101  }
Note: See TracChangeset for help on using the changeset viewer.