Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/12 13:52:51 (13 years ago)
Author:
ascheibe
Message:

#1745 merged trunk changes into branch

Location:
branches/HiveHiveEngine
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveHiveEngine

  • branches/HiveHiveEngine/HeuristicLab.Problems.VehicleRouting

  • branches/HiveHiveEngine/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPSolutionAnalyzer.cs

    r7259 r7383  
    125125
    126126    [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
    129130      if (!Parameters.ContainsKey("BestKnownQuality")) {
    130131        Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this VRP instance."));
  • branches/HiveHiveEngine/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs

    r7259 r7383  
    155155    private VehicleRoutingProblem(VehicleRoutingProblem original, Cloner cloner)
    156156      : base(original, cloner) {
    157       AttachEventHandlers();
     157      RegisterEventHandlers();
    158158    }
    159159    public VehicleRoutingProblem()
     
    187187
    188188      InitializeOperators();
    189       AttachEventHandlers();
     189      RegisterEventHandlers();
    190190    }
    191191
     
    355355    #region Helpers
    356356    [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
    359360      if (!Parameters.ContainsKey("BestKnownSolution")) {
    360361        Parameters.Add(new OptionalValueParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this TSP instance."));
     
    362363      #endregion
    363364
    364       AttachEventHandlers();
    365     }
    366 
    367     private void AttachEventHandlers() {
     365      RegisterEventHandlers();
     366    }
     367
     368    private void RegisterEventHandlers() {
    368369      CoordinatesParameter.ValueChanged += new EventHandler(CoordinatesParameter_ValueChanged);
    369370      Coordinates.ItemChanged += new EventHandler<EventArgs<int, int>>(Coordinates_ItemChanged);
Note: See TracChangeset for help on using the changeset viewer.