- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Selection/3.3/Replacer.cs
r4722 r5177 75 75 } 76 76 77 public override IOperation Apply( ) {78 if ( ExecutionContext.Scope.SubScopes.Count != 2) throw new InvalidOperationException(Name + ": There must be two sub-scopes which should be replaced/merged.");79 int remaining = ExecutionContext.Scope.SubScopes[0].SubScopes.Count;80 int selected = ExecutionContext.Scope.SubScopes[1].SubScopes.Count;77 public override IOperation Apply(IExecutionContext context) { 78 if (context.Scope.SubScopes.Count != 2) throw new InvalidOperationException(Name + ": There must be two sub-scopes which should be replaced/merged."); 79 int remaining = context.Scope.SubScopes[0].SubScopes.Count; 80 int selected = context.Scope.SubScopes[1].SubScopes.Count; 81 81 82 82 ISelector replacedSelector = ReplacedSelectorParameter.ActualValue; … … 92 92 } 93 93 94 return base.Apply( );94 return base.Apply(context); 95 95 } 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.