Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (13 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/Evaluators/BoothEvaluator.cs

    r4068 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    6465    }
    6566
     67    [StorableConstructor]
     68    protected BoothEvaluator(bool deserializing) : base(deserializing) { }
     69    protected BoothEvaluator(BoothEvaluator original, Cloner cloner) : base(original, cloner) { }
     70    public BoothEvaluator() : base() { }
     71
     72    public override IDeepCloneable Clone(Cloner cloner) {
     73      return new BoothEvaluator(this, cloner);
     74    }
     75
    6676    public override RealVector GetBestKnownSolution(int dimension) {
    6777      if (dimension != 2) throw new ArgumentException(Name + ": This function is only defined for 2 dimensions.", "dimension");
Note: See TracChangeset for help on using the changeset viewer.