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/Evaluators/SphereEvaluator.cs

    r4068 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    6667    }
    6768
     69    public override IDeepCloneable Clone(Cloner cloner) {
     70      return new SphereEvaluator(this, cloner);
     71    }
     72
    6873    public override RealVector GetBestKnownSolution(int dimension) {
    6974      return new RealVector(dimension);
     
    97102    }
    98103
     104    [StorableConstructor]
     105    protected SphereEvaluator(bool deserializing) : base(deserializing) { }
     106    protected SphereEvaluator(SphereEvaluator original, Cloner cloner) : base(original, cloner) { }
    99107    /// <summary>
    100108    /// Initializes a new instance of the SphereEvaluator with two parameters (<c>C</c> and <c>Alpha</c>).
Note: See TracChangeset for help on using the changeset viewer.