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/MoveEvaluators/SchwefelAdditiveMoveEvaluator.cs

    r4068 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Encodings.RealVectorEncoding;
     
    3132      get { return typeof(SchwefelEvaluator); }
    3233    }
     34
     35    [StorableConstructor]
     36    protected SchwefelAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     37    protected SchwefelAdditiveMoveEvaluator(SchwefelAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
     38    public SchwefelAdditiveMoveEvaluator() : base() { }
     39
     40    public override IDeepCloneable Clone(Cloner cloner) {
     41      return new SchwefelAdditiveMoveEvaluator(this, cloner);
     42    }
     43
    3344    protected override double Evaluate(double quality, RealVector point, AdditiveMove move) {
    3445      RealVectorAdditiveMoveWrapper wrapper = new RealVectorAdditiveMoveWrapper(move, point);
Note: See TracChangeset for help on using the changeset viewer.