Changeset 7351 for trunk/sources/HeuristicLab.Problems.VehicleRouting
- Timestamp:
- 01/17/12 23:54:58 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPSolutionAnalyzer.cs
r7259 r7351 125 125 126 126 [StorableHook(HookType.AfterDeserialization)] 127 private void AfterDeserializationHook() { 128 #region Backwards Compatibility 127 private void AfterDeserialization() { 128 // BackwardsCompatibility3.3 129 #region Backwards compatible code, remove with 3.4 129 130 if (!Parameters.ContainsKey("BestKnownQuality")) { 130 131 Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this VRP instance.")); -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs
r7259 r7351 155 155 private VehicleRoutingProblem(VehicleRoutingProblem original, Cloner cloner) 156 156 : base(original, cloner) { 157 AttachEventHandlers();157 RegisterEventHandlers(); 158 158 } 159 159 public VehicleRoutingProblem() … … 187 187 188 188 InitializeOperators(); 189 AttachEventHandlers();189 RegisterEventHandlers(); 190 190 } 191 191 … … 355 355 #region Helpers 356 356 [StorableHook(HookType.AfterDeserialization)] 357 private void AfterDeserializationHook() { 358 #region Backwards Compatibility 357 private void AfterDeserialization() { 358 // BackwardsCompatibility3.3 359 #region Backwards compatible code, remove with 3.4 359 360 if (!Parameters.ContainsKey("BestKnownSolution")) { 360 361 Parameters.Add(new OptionalValueParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this TSP instance.")); … … 362 363 #endregion 363 364 364 AttachEventHandlers();365 } 366 367 private void AttachEventHandlers() {365 RegisterEventHandlers(); 366 } 367 368 private void RegisterEventHandlers() { 368 369 CoordinatesParameter.ValueChanged += new EventHandler(CoordinatesParameter_ValueChanged); 369 370 Coordinates.ItemChanged += new EventHandler<EventArgs<int, int>>(Coordinates_ItemChanged);
Note: See TracChangeset
for help on using the changeset viewer.