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.Encodings.PermutationEncoding/3.3/Manipulators/Swap3Manipulator.cs

    r4477 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3536  [StorableClass]
    3637  public class Swap3Manipulator : PermutationManipulator {
     38    [StorableConstructor]
     39    protected Swap3Manipulator(bool deserializing) : base(deserializing) { }
     40    protected Swap3Manipulator(Swap3Manipulator original, Cloner cloner) : base(original, cloner) { }
     41    public Swap3Manipulator() : base() { }
     42
     43    public override IDeepCloneable Clone(Cloner cloner) {
     44      return new Swap3Manipulator(this, cloner);
     45    }
     46
    3747    /// <summary>
    3848    /// Swaps three randomly chosen elements of the given <paramref name="permutation"/> array.
Note: See TracChangeset for help on using the changeset viewer.