Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 19:31:19 (14 years ago)
Author:
swagner
Message:

Finished cloning refactoring of HeuristicLab.Optimization.Operators (#922)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Optimization.Operators/3.3/ResultsCollector.cs

    r4068 r4679  
    2121
    2222using System.Collections;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    4647    }
    4748
     49    [StorableConstructor]
     50    protected ResultsCollector(bool deserializing) : base(deserializing) { }
     51    protected ResultsCollector(ResultsCollector original, Cloner cloner) : base(original, cloner) { }
    4852    public ResultsCollector()
    4953      : base() {
    5054      Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the collected values should be stored."));
    5155      Parameters.Add(new ValueParameter<BoolValue>("CopyValue", "True if the collected result value should be copied, otherwise false.", new BoolValue(false)));
     56    }
     57
     58    public override IDeepCloneable Clone(Cloner cloner) {
     59      return new ResultsCollector(this, cloner);
    5260    }
    5361
Note: See TracChangeset for help on using the changeset viewer.