Changeset 4722 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestAverageWorstVRPToursAnalyzer.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/branches/CloningRefactoring/HeuristicLab.Problems.VehicleRouting (added) merged: 4686-4687,4689-4693,4696-4697
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestAverageWorstVRPToursAnalyzer.cs
r4416 r4722 21 21 22 22 using System; 23 using HeuristicLab.Analysis; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Parameters; 30 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Analysis;32 32 33 33 namespace HeuristicLab.Problems.VehicleRouting { … … 150 150 public BestAverageWorstVRPToursAnalyzer() 151 151 : base() { 152 #region Create parameters 152 #region Create parameters 153 153 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Overload", "The overloads of the VRP solutions which should be analyzed.")); 154 154 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestOverload", "The best overload value.")); … … 157 157 Parameters.Add(new ValueLookupParameter<DoubleValue>("CurrentWorstOverload", "The current worst overload value of all solutions.")); 158 158 Parameters.Add(new ValueLookupParameter<DataTable>("Overloads", "The data table to store the current best, current average, current worst, best and best known overload value.")); 159 159 160 160 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Tardiness", "The tardiness of the VRP solutions which should be analyzed.")); 161 161 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestTardiness", "The best tardiness value.")); … … 311 311 [StorableConstructor] 312 312 private BestAverageWorstVRPToursAnalyzer(bool deserializing) : base() { } 313 private BestAverageWorstVRPToursAnalyzer(BestAverageWorstVRPToursAnalyzer original, Cloner cloner) 314 : base(original, cloner) { 315 Initialize(); 316 } 317 public override IDeepCloneable Clone(Cloner cloner) { 318 return new BestAverageWorstVRPToursAnalyzer(this, cloner); 319 } 313 320 314 321 [StorableHook(HookType.AfterDeserialization)] 322 private void AfterDeserialization() { 323 Initialize(); 324 } 315 325 private void Initialize() { 316 326 OverloadParameter.DepthChanged += new EventHandler(OverloadParameter_DepthChanged); … … 321 331 } 322 332 323 public override IDeepCloneable Clone(Cloner cloner) {324 BestAverageWorstVRPToursAnalyzer clone = (BestAverageWorstVRPToursAnalyzer)base.Clone(cloner);325 clone.Initialize();326 return clone;327 }328 333 329 334 void OverloadParameter_DepthChanged(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.