Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/09/10 09:55:31 (13 years ago)
Author:
svonolfe
Message:

Merged relevant changes from the trunk into the branch (cloning,...) (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins/PrinsEncoding.cs

    r4379 r4752  
    132132    }
    133133    #endregion
    134 
    135     public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
    136       PrinsEncoding clone = new PrinsEncoding(
    137         new Permutation(this.PermutationType, this.array), ProblemInstance);
    138 
    139       cloner.RegisterClonedObject(this, clone);
    140       clone.readOnly = readOnly;
    141       return clone;
    142     }
    143 
    144134    public PrinsEncoding(Permutation permutation, IVRPProblemInstance problemInstance)
    145135      : base(permutation, problemInstance) {
     
    149139    private PrinsEncoding(bool serializing)
    150140      : base(serializing) {
     141    }
     142
     143    public override IDeepCloneable Clone(Cloner cloner) {
     144      return new PrinsEncoding(this, cloner);
     145    }
     146
     147    protected PrinsEncoding(PrinsEncoding original, Cloner cloner)
     148      : base(original, cloner) {
    151149    }
    152150
Note: See TracChangeset for help on using the changeset viewer.