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

    r4477 r4667  
    2626using HeuristicLab.Parameters;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Encodings.PermutationEncoding {
     
    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.