Free cookie consent management tool by TermsFeed Policy Generator

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

#922

  • Refactored HeuristicLab.Encodings.PermutationEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/PartiallyMatchedCrossover.cs

    r4545 r4667  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Common;
    2526
    2627namespace HeuristicLab.Encodings.PermutationEncoding {
     
    3637  [StorableClass]
    3738  public class PartiallyMatchedCrossover : PermutationCrossover {
     39    [StorableConstructor]
     40    protected PartiallyMatchedCrossover(bool deserializing) : base(deserializing) { }
     41    protected PartiallyMatchedCrossover(PartiallyMatchedCrossover original, Cloner cloner) : base(original, cloner) { }
     42    public PartiallyMatchedCrossover() : base() { }
     43
     44    public override IDeepCloneable Clone(Cloner cloner) {
     45      return new PartiallyMatchedCrossover(this, cloner);
     46    }
     47
    3848    /// <summary>
    3949    /// Performs the partially matched crossover on <paramref name="parent1"/> and <paramref name="parent2"/>.
Note: See TracChangeset for help on using the changeset viewer.