Changeset 5177 for branches/ParallelEngine/HeuristicLab.Optimization.Operators/3.3/SolutionsCreator.cs
- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Optimization.Operators/3.3/SolutionsCreator.cs
r4722 r5177 69 69 } 70 70 71 public override IOperation Apply( ) {71 public override IOperation Apply(IExecutionContext context) { 72 72 int count = NumberOfSolutionsParameter.ActualValue.Value; 73 73 IOperator creator = SolutionCreatorParameter.ActualValue; … … 80 80 OperationCollection next = new OperationCollection(); 81 81 for (int i = 0; i < count; i++) { 82 if (creator != null) next.Add( ExecutionContext.CreateOperation(creator, CurrentScope.SubScopes[current + i]));83 if (evaluator != null) next.Add( ExecutionContext.CreateOperation(evaluator, CurrentScope.SubScopes[current + i]));82 if (creator != null) next.Add(context.CreateOperation(creator, CurrentScope.SubScopes[current + i])); 83 if (evaluator != null) next.Add(context.CreateOperation(evaluator, CurrentScope.SubScopes[current + i])); 84 84 } 85 next.Add(base.Apply( ));85 next.Add(base.Apply(context)); 86 86 return next; 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.