- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Selection/3.3/OffspringSelector.cs
r4722 r5177 80 80 } 81 81 82 public override IOperation Apply( ) {82 public override IOperation Apply(IExecutionContext context) { 83 83 double maxSelPress = MaximumSelectionPressureParameter.ActualValue.Value; 84 84 double successRatio = SuccessRatioParameter.ActualValue.Value; 85 IScope scope = ExecutionContext.Scope;85 IScope scope = context.Scope; 86 86 IScope parents = scope.SubScopes[0]; 87 87 IScope offspring = scope.SubScopes[1]; … … 162 162 IOperator moreOffspring = OffspringCreatorParameter.ActualValue as IOperator; 163 163 if (moreOffspring == null) throw new InvalidOperationException(Name + ": More offspring are required, but no operator specified for creating them."); 164 return ExecutionContext.CreateOperation(moreOffspring);164 return context.CreateOperation(moreOffspring); 165 165 } else { 166 166 // enough children generated … … 170 170 scope.Variables.Remove(OffspringPopulationParameter.TranslatedName); 171 171 scope.Variables.Remove(OffspringPopulationWinnersParameter.TranslatedName); 172 return base.Apply( );172 return base.Apply(context); 173 173 } 174 174 }
Note: See TracChangeset
for help on using the changeset viewer.