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/Zhu/ZhuEncoding.cs

    r4379 r4752  
    9393    #endregion
    9494
    95     public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
    96       ZhuEncoding clone = new ZhuEncoding(
    97         new Permutation(this.PermutationType, this.array), ProblemInstance);
    98 
    99       cloner.RegisterClonedObject(this, clone);
    100       clone.readOnly = readOnly;
    101       return clone;
     95    public ZhuEncoding(Permutation permutation, IVRPProblemInstance problemInstance)
     96      : base(permutation, problemInstance) {
    10297    }
    10398
    104     public ZhuEncoding(Permutation permutation, IVRPProblemInstance problemInstance)
    105       : base(permutation, problemInstance) {
     99    public override IDeepCloneable Clone(Cloner cloner) {
     100      return new ZhuEncoding(this, cloner);
     101    }
     102
     103    protected ZhuEncoding(ZhuEncoding original, Cloner cloner)
     104      : base(original, cloner) {
    106105    }
    107106
Note: See TracChangeset for help on using the changeset viewer.