Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 20:20:35 (14 years ago)
Author:
abeham
Message:

#922

  • Refactored Prins encoding in HeuristicLab.Problems.VehicleRouting
Location:
branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Crossovers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Crossovers/PrinsCrossover.cs

    r4352 r4686  
    2626using HeuristicLab.Data;
    2727using HeuristicLab.Optimization;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins {
     
    5354    [StorableConstructor]
    5455    protected PrinsCrossover(bool deserializing) : base(deserializing) { }
    55 
     56    protected PrinsCrossover(PrinsCrossover original, Cloner cloner) : base(original, cloner) { }
    5657    public PrinsCrossover()
    5758      : base() {
  • branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Prins/Crossovers/PrinsPermutationCrossover.cs

    r4352 r4686  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626using HeuristicLab.Data;
     27using HeuristicLab.Common;
    2728
    2829namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins {
     
    3637    [StorableConstructor]
    3738    private PrinsPermutationCrossover(bool deserializing) : base(deserializing) { }
    38 
     39    private PrinsPermutationCrossover(PrinsPermutationCrossover original, Cloner cloner) : base(original, cloner) { }
     40    public override IDeepCloneable Clone(Cloner cloner) {
     41      return new PrinsPermutationCrossover(this, cloner);
     42    }
    3943    public PrinsPermutationCrossover()
    4044      : base() {
Note: See TracChangeset for help on using the changeset viewer.