Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 20:30:20 (14 years ago)
Author:
gkronber
Message:

Refactored cloning in HeuristicLab.Problems.VehicleRouting. #922

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs

    r4352 r4690  
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2727using HeuristicLab.Problems.VehicleRouting.Encodings;
     28using HeuristicLab.Common;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting {
     
    8283    }
    8384
     85    [StorableConstructor]
     86    private VRPEvaluator(bool deserializing) : base(deserializing) { }
     87    private VRPEvaluator(VRPEvaluator original, Cloner cloner)
     88      : base(original, cloner) {
     89    }
    8490    public VRPEvaluator()
    8591      : base() {
     
    98104    }
    99105
     106    public override IDeepCloneable Clone(Cloner cloner) {
     107      return new VRPEvaluator(this, cloner);
     108    }
     109
    100110    private double CalculateFleetUsage() {
    101111      IVRPEncoding vrpSolution = VRPToursParameter.ActualValue;
Note: See TracChangeset for help on using the changeset viewer.