- Timestamp:
- 10/29/10 18:28:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Selection/3.3/Replacer.cs
r3601 r4670 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 40 41 41 42 [StorableConstructor] 42 protected Replacer(bool deserializing) : base() { } 43 protected Replacer(bool deserializing) : base(deserializing) { } 44 protected Replacer(Replacer original, Cloner cloner) : base(original, cloner) { } 45 public override IDeepCloneable Clone(Cloner cloner) { 46 return new Replacer(this, cloner); 47 } 43 48 public Replacer() { 44 49 Parameters.Add(new ValueLookupParameter<ISelector>("ReplacedSelector", "The selection operator to select those scopes that are to be replaced.")); … … 74 79 int remaining = ExecutionContext.Scope.SubScopes[0].SubScopes.Count; 75 80 int selected = ExecutionContext.Scope.SubScopes[1].SubScopes.Count; 76 81 77 82 ISelector replacedSelector = ReplacedSelectorParameter.ActualValue; 78 83 ISelector selectedSelector = SelectedSelectorParameter.ActualValue; 79 84 80 85 if (replacedSelector != null) { 81 86 replacedSelector.CopySelected = new BoolValue(false);
Note: See TracChangeset
for help on using the changeset viewer.