- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Operators/3.3/StochasticMultiBranch.cs
r4722 r5177 109 109 /// or all selected operators have zero probabitlity.</exception> 110 110 /// <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) { 112 112 IRandom random = RandomParameter.ActualValue; 113 113 DoubleArray probabilities = ProbabilitiesParameter.ActualValue; … … 131 131 } 132 132 } 133 OperationCollection next = new OperationCollection(base.Apply( ));133 OperationCollection next = new OperationCollection(base.Apply(context)); 134 134 if (successor != null) { 135 135 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)); 138 138 } 139 139 return next;
Note: See TracChangeset
for help on using the changeset viewer.