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/Crossovers/CosaCrossover.cs

    r4477 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3738  [StorableClass]
    3839  public class CosaCrossover : PermutationCrossover {
     40    [StorableConstructor]
     41    protected CosaCrossover(bool deserializing) : base(deserializing) { }
     42    protected CosaCrossover(CosaCrossover original, Cloner cloner) : base(original, cloner) { }
     43    public CosaCrossover() : base() { }
     44
     45    public override IDeepCloneable Clone(Cloner cloner) {
     46      return new CosaCrossover(this, cloner);
     47    }
     48
    3949    /// <summary>
    4050    /// The operator actually performs a 2-opt mutation on the first parent, but it uses the second parent to determine which new edge should be inserted.
Note: See TracChangeset for help on using the changeset viewer.