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

    r4722 r5177  
    140140    /// <exception cref="InvalidOperationException">Thrown when <see cref="NumberOfSelectedSubScopesParameter"/> returns an odd number.</exception>
    141141    /// <returns>Returns Apply of <see cref="AlgorithmOperator"/>.</returns>
    142     public override IOperation Apply() {
     142    public override IOperation Apply(IExecutionContext context) {
    143143      int count = NumberOfSelectedSubScopesParameter.ActualValue.Value;
    144144      if (count % 2 > 0) throw new InvalidOperationException(Name + ": There must be an equal number of sub-scopes to be selected.");
    145145      FemaleSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(count / 2);
    146146      MaleSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(count / 2);
    147       return base.Apply();
     147      return base.Apply(context);
    148148    }
    149149
Note: See TracChangeset for help on using the changeset viewer.