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/Creators/RandomPermutationCreator.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    5657    }
    5758
     59    [StorableConstructor]
     60    private RandomPermutationCreator(bool deserializing) : base(deserializing) { }
     61    private RandomPermutationCreator(RandomPermutationCreator original, Cloner cloner) : base(original, cloner) { }
    5862    public RandomPermutationCreator()
    5963      : base() {
     
    6468    }
    6569
     70    public override IDeepCloneable Clone(Cloner cloner) {
     71      return new RandomPermutationCreator(this, cloner);
     72    }
     73
    6674    public override IOperation Apply() {
    6775      PermutationParameter.ActualValue = new Permutation(PermutationType, LengthParameter.ActualValue.Value, RandomParameter.ActualValue);
Note: See TracChangeset for help on using the changeset viewer.