Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 17:37:02 (13 years ago)
Author:
abeham
Message:

#922

  • Refactored HeuristicLab.Encodings.PermutationEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/InsertionManipulator.cs

    r4477 r4667  
    2222using HeuristicLab.Core;
    2323using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Encodings.PermutationEncoding {
     
    3334  [StorableClass]
    3435  public class InsertionManipulator : PermutationManipulator {
     36    [StorableConstructor]
     37    protected InsertionManipulator(bool deserializing) : base(deserializing) { }
     38    protected InsertionManipulator(InsertionManipulator original, Cloner cloner) : base(original, cloner) { }
     39    public InsertionManipulator() : base() { }
     40
     41    public override IDeepCloneable Clone(Cloner cloner) {
     42      return new InsertionManipulator(this, cloner);
     43    }
     44
    3545    /// <summary>
    3646    /// Moves an randomly chosen element in the specified <paramref name="permutation"/> array
Note: See TracChangeset for help on using the changeset viewer.