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.Operators/3.3/StochasticMultiBranch.cs

    r4722 r5177  
    109109    /// or all selected operators have zero probabitlity.</exception>
    110110    /// <returns>A new operation with the operator that was selected followed by the current operator's successor.</returns>
    111     public override IOperation Apply() {
     111    public override IOperation Apply(IExecutionContext context) {
    112112      IRandom random = RandomParameter.ActualValue;
    113113      DoubleArray probabilities = ProbabilitiesParameter.ActualValue;
     
    131131        }
    132132      }
    133       OperationCollection next = new OperationCollection(base.Apply());
     133      OperationCollection next = new OperationCollection(base.Apply(context));
    134134      if (successor != null) {
    135135        if (CreateChildOperation)
    136           next.Insert(0, ExecutionContext.CreateChildOperation(successor));
    137         else next.Insert(0, ExecutionContext.CreateOperation(successor));
     136          next.Insert(0, context.CreateChildOperation(successor));
     137        else next.Insert(0, context.CreateOperation(successor));
    138138      }
    139139      return next;
Note: See TracChangeset for help on using the changeset viewer.