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.Knapsack/3.3/KnapsackProblem.cs

    r4098 r4118  
    138138
    139139    [StorableConstructor]
    140     private KnapsackProblem(bool deserializing) : base() { }
     140    private KnapsackProblem(bool deserializing) : base(deserializing) { }
    141141    public KnapsackProblem()
    142142      : base() {
     
    255255    #region Helpers
    256256    [StorableHook(HookType.AfterDeserialization)]
     257    private void AfterDeserializationHook() {
     258      // BackwardsCompatibility3.3
     259      #region Backwards compatible code (remove with 3.4)
     260      if (operators == null) InitializeOperators();
     261      #endregion
     262      AttachEventHandlers();
     263    }
     264
    257265    private void AttachEventHandlers() {
    258       // Start BackwardsCompatibility3.3 (remove with 3.4)
    259       if (operators == null) InitializeOperators();
    260       // End BackwardsCompatibility3.3
    261266      SolutionCreatorParameter.ValueChanged += new EventHandler(SolutionCreatorParameter_ValueChanged);
    262267      SolutionCreator.BinaryVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_BinaryVectorParameter_ActualNameChanged);
Note: See TracChangeset for help on using the changeset viewer.