Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 18:28:23 (13 years ago)
Author:
mkommend
Message:

Refactored Selection and fixed some errors and warnings (ticket #922).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Selection/3.3/Replacer.cs

    r3601 r4670  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    4041
    4142    [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    }
    4348    public Replacer() {
    4449      Parameters.Add(new ValueLookupParameter<ISelector>("ReplacedSelector", "The selection operator to select those scopes that are to be replaced."));
     
    7479      int remaining = ExecutionContext.Scope.SubScopes[0].SubScopes.Count;
    7580      int selected = ExecutionContext.Scope.SubScopes[1].SubScopes.Count;
    76      
     81
    7782      ISelector replacedSelector = ReplacedSelectorParameter.ActualValue;
    7883      ISelector selectedSelector = SelectedSelectorParameter.ActualValue;
    79      
     84
    8085      if (replacedSelector != null) {
    8186        replacedSelector.CopySelected = new BoolValue(false);
Note: See TracChangeset for help on using the changeset viewer.