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.IntegerVectorEncoding/3.3/Manipulators/UniformOnePositionManipulator.cs

    r4068 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    4950    }
    5051
     52    [StorableConstructor]
     53    protected UniformOnePositionManipulator(bool deserializing) : base(deserializing) { }
     54    protected UniformOnePositionManipulator(UniformOnePositionManipulator original, Cloner cloner) : base(original, cloner) { }
    5155    /// <summary>
    5256    /// Initializes a new instance of <see cref="UniformOnePositionManipulator"/> with two parameters
    5357    /// (<c>Minimum</c> and <c>Maximum</c>).
    5458    /// </summary>
    55     public UniformOnePositionManipulator() {
     59    public UniformOnePositionManipulator()
     60      : base() {
    5661      Parameters.Add(new ValueLookupParameter<IntValue>("Minimum", "Minimum of the sampling range for the vector element (included)"));
    5762      Parameters.Add(new ValueLookupParameter<IntValue>("Maximum", "Maximum of the sampling range for the vector element (excluded)"));
     63    }
     64
     65    public override IDeepCloneable Clone(Cloner cloner) {
     66      return new UniformOnePositionManipulator(this, cloner);
    5867    }
    5968
Note: See TracChangeset for help on using the changeset viewer.