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/BestSelector.cs

    r4477 r4670  
    2222using System.Collections.Generic;
    2323using System.Linq;
     24using HeuristicLab.Common;
    2425using HeuristicLab.Core;
    2526using HeuristicLab.Data;
     
    3536  public sealed class BestSelector : SingleObjectiveSelector, ISingleObjectiveSelector {
    3637    public BestSelector() : base() { }
     38    [StorableConstructor]
     39    private BestSelector(bool deserializing) : base(deserializing) { }
     40    private BestSelector(BestSelector original, Cloner cloner)
     41      : base(original, cloner) {
     42    }
     43    public override IDeepCloneable Clone(Cloner cloner) {
     44      return new BestSelector(this, cloner);
     45    }
     46
    3747
    3848    protected override IScope[] Select(List<IScope> scopes) {
Note: See TracChangeset for help on using the changeset viewer.