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/TranslocationManipulator.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3435  [StorableClass]
    3536  public class TranslocationManipulator : PermutationManipulator {
     37    [StorableConstructor]
     38    protected TranslocationManipulator(bool deserializing) : base(deserializing) { }
     39    protected TranslocationManipulator(TranslocationManipulator original, Cloner cloner) : base(original, cloner) { }
     40    public TranslocationManipulator() : base() { }
     41
     42    public override IDeepCloneable Clone(Cloner cloner) {
     43      return new TranslocationManipulator(this, cloner);
     44    }
     45
    3646    /// <summary>
    3747    /// Moves a randomly chosen interval of elements to another (randomly chosen) position in the given
Note: See TracChangeset for help on using the changeset viewer.