Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 19:54:20 (14 years ago)
Author:
abeham
Message:

#1090

  • Fixed problem plugins reloading their operators on deserialization in following problems (forgot on them in the first commit)
    • SupportVectorRegressionProblem
    • SymbolicTimeSeriesPrognosisProblem
  • Fixed a bug in the FeatureSelectionProblem introduced in r4098
  • Fixed the issues mentioned in the code review of mkommend
File:
1 edited

Legend:

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

    r4098 r4118  
    182182
    183183    [StorableConstructor]
    184     private VehicleRoutingProblem(bool deserializing) : base() { }
     184    private VehicleRoutingProblem(bool deserializing) : base(deserializing) { }
    185185    public VehicleRoutingProblem()
    186186      : base() {
     
    295295    #region Helpers
    296296    [StorableHook(HookType.AfterDeserialization)]
     297    private void AfterDeserializationHook() {
     298      // BackwardsCompatibility3.3
     299      #region Backwards compatible code (remove with 3.4)
     300      if (operators == null) InitializeOperators();
     301      #endregion
     302      AttachEventHandlers();
     303    }
     304
    297305    private void AttachEventHandlers() {
    298       // Start BackwardsCompatibility3.3 (remove with 3.4)
    299       if (operators == null) InitializeOperators();
    300       // End BackwardsCompatibility3.3
    301306      CoordinatesParameter.ValueChanged += new EventHandler(CoordinatesParameter_ValueChanged);
    302307      Vehicles.ValueChanged += new EventHandler(VehiclesValue_ValueChanged);
Note: See TracChangeset for help on using the changeset viewer.