Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/09/10 09:55:31 (14 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/Potvin/PotvinEncoding.cs

    r4378 r4752  
    3939    public List<int> Unrouted { get; set; }
    4040
    41     public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
    42       PotvinEncoding clone = new PotvinEncoding(ProblemInstance);
    43       cloner.RegisterClonedObject(this, clone);
    44       clone.Tours = (ItemList<Tour>)cloner.Clone(this.Tours);
    45       clone.Unrouted = new List<int>(Unrouted);
    46       return clone;
    47     }
    48 
    4941    public PotvinEncoding(IVRPProblemInstance instance)
    5042      : base(instance) {
     
    5547    private PotvinEncoding(bool serializing)
    5648      : base(serializing) {
     49    }
     50
     51    public override IDeepCloneable Clone(Cloner cloner) {
     52      return new PotvinEncoding(this, cloner);
     53    }
     54
     55    protected PotvinEncoding(PotvinEncoding original, Cloner cloner)
     56      : base(original, cloner) {
     57        this.Unrouted = new List<int>(original.Unrouted);
    5758    }
    5859
Note: See TracChangeset for help on using the changeset viewer.