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.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r4098 r4118  
    131131
    132132    [StorableConstructor]
    133     private SingleObjectiveTestFunctionProblem(bool deserializing) : base() { }
     133    private SingleObjectiveTestFunctionProblem(bool deserializing) : base(deserializing) { }
    134134    public SingleObjectiveTestFunctionProblem()
    135135      : base() {
     
    297297    #region Helpers
    298298    [StorableHook(HookType.AfterDeserialization)]
     299    private void AfterDeserializationHook() {
     300      // BackwardsCompatibility3.3
     301      #region Backwards compatible code (remove with 3.4)
     302      if (operators == null) InitializeOperators();
     303      #endregion
     304      AttachEventHandlers();
     305    }
     306
    299307    private void AttachEventHandlers() {
    300       // Start BackwardsCompatibility3.3 (remove with 3.4)
    301       if (operators == null) InitializeOperators();
    302       // End BackwardsCompatibility3.3
    303308      ProblemSizeParameter.ValueChanged += new EventHandler(ProblemSizeParameter_ValueChanged);
    304309      ProblemSize.ValueChanged += new EventHandler(ProblemSize_ValueChanged);
Note: See TracChangeset for help on using the changeset viewer.