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.Encodings.RealVectorEncoding/3.3/Crossovers/BlendAlphaCrossover.cs

    r4068 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    4849      get { return (ValueLookupParameter<DoubleValue>)Parameters["Alpha"]; }
    4950    }
     51
     52    [StorableConstructor]
     53    protected BlendAlphaCrossover(bool deserializing) : base(deserializing) { }
     54    protected BlendAlphaCrossover(BlendAlphaCrossover original, Cloner cloner) : base(original, cloner) { }
    5055    /// <summary>
    5156    /// Initializes a new instance of <see cref="BlendAlphaCrossover"/> with one parameter (<c>Alpha</c>).
     
    5459      : base() {
    5560      Parameters.Add(new ValueLookupParameter<DoubleValue>("Alpha", "The Alpha parameter controls the extension of the range beyond the two parents. It must be >= 0. A value of 0.5 means that half the range is added to both sides of the intervals.", new DoubleValue(0.5)));
     61    }
     62
     63    public override IDeepCloneable Clone(Cloner cloner) {
     64      return new BlendAlphaCrossover(this, cloner);
    5665    }
    5766
Note: See TracChangeset for help on using the changeset viewer.