Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/BestSingleObjectiveTestFunctionSolutionAnalyzer.cs

    r4098 r4722  
    2121
    2222using System.Linq;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    7273    [StorableConstructor]
    7374    protected BestSingleObjectiveTestFunctionSolutionAnalyzer(bool deserializing) : base(deserializing) { }
     75    protected BestSingleObjectiveTestFunctionSolutionAnalyzer(BestSingleObjectiveTestFunctionSolutionAnalyzer original, Cloner cloner) : base(original, cloner) { }
    7476    public BestSingleObjectiveTestFunctionSolutionAnalyzer()
    7577      : base() {
     
    8991    /// </summary>
    9092    [StorableHook(HookType.AfterDeserialization)]
    91     private void CompatibilityMethod() {
     93    private void AfterDeserialization() {
    9294      // BackwardsCompatibility3.3
    9395      // Bounds are introduced in 3.3.0.3894
    9496      if (!Parameters.ContainsKey("Bounds"))
    9597        Parameters.Add(new LookupParameter<DoubleMatrix>("Bounds", "The bounds of the function."));
     98    }
     99
     100    public override IDeepCloneable Clone(Cloner cloner) {
     101      return new BestSingleObjectiveTestFunctionSolutionAnalyzer(this, cloner);
    96102    }
    97103
Note: See TracChangeset for help on using the changeset viewer.