Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/20/10 13:28:02 (14 years ago)
Author:
svonolfe
Message:

Fixed backwards compatibility #1236

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs

    r4620 r4625  
    198198    private VehicleRoutingProblem(bool deserializing) : base(deserializing) { }
    199199
    200     #region Backwards Compatibility
    201     [StorableHook(Persistence.Default.CompositeSerializers.Storable.HookType.AfterDeserialization)]
    202     private void CheckParameters() {
    203       if (!Parameters.ContainsKey("BestKnownSolution")) {
    204         Parameters.Add(new OptionalValueParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this TSP instance."));
    205       }
    206     }
    207     #endregion
    208 
    209200    public VehicleRoutingProblem()
    210201      : base() {
     
    444435    [StorableHook(HookType.AfterDeserialization)]
    445436    private void AfterDeserializationHook() {
     437      #region Backwards Compatibility
     438      if (!Parameters.ContainsKey("BestKnownSolution")) {
     439        Parameters.Add(new OptionalValueParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this TSP instance."));
     440      }
     441      #endregion
     442
    446443      AttachEventHandlers();
    447444    }
Note: See TracChangeset for help on using the changeset viewer.